Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics:setBackgroundColor( color )
Note: The alpha value of the Color will be ignored as the background cannot be transparent.
Usage
love.graphics:setBackgroundColor( color )
Arguments
colorA Color object.
Returns
Nothing
Examples
Example 1: Set the background color as red. red = love.objects:newColor(255, 0, 0);
love.graphics:setBackgroundColor(red);