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( red, green, blue )
No alpha value is present as the background cannot be transparent.
Usage
love.graphics:setBackgroundColor( red, green, blue )
Arguments
redThe amount of red.
greenThe amount of green.
blueThe amount of blue.
Returns
Nothing
Examples
Example 1: Set the current color as red, then blue. love.graphics:setBackgroundColor(255, 10, 10);
love.graphics:setBackgroundColor(10, 10, 255);