Difference between revisions of "love.graphics.getBackgroundColor"

(Added alpha return value.)
Line 11: Line 11:
 
{{param|number|g|The green component (0-255).}}
 
{{param|number|g|The green component (0-255).}}
 
{{param|number|b|The blue component (0-255).}}
 
{{param|number|b|The blue component (0-255).}}
{{param|number|b|The alpha component (0-255).}}
+
{{param|number|a|The alpha component (0-255).}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 00:04, 5 August 2012

Gets the current background color.

Function

Synopsis

r, g, b, a = love.graphics.getBackgroundColor( )

Arguments

None.

Returns

number r
The red component (0-255).
number g
The green component (0-255).
number b
The blue component (0-255).
number a
The alpha component (0-255).

See Also


Other Languages