Difference between revisions of "love.graphics.getBackgroundColor"
(Added alpha return value.) |
|||
Line 3: | Line 3: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | r, g, b = love.graphics.getBackgroundColor( ) | + | r, g, b, a = love.graphics.getBackgroundColor( ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
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).}} | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] |
Revision as of 23:34, 8 April 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 b
- The alpha component (0-255).
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info