Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
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)