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( 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.graphics.newColor(255, 0, 0)
love.graphics.setBackgroundColor(red)