Difference between revisions of "love.graphics.setBackgroundColor"

(updated for 0.8.0 variant)
Line 9: Line 9:
 
{{param|number|green|The green component (0-255).}}
 
{{param|number|green|The green component (0-255).}}
 
{{param|number|blue|The blue component (0-255).}}
 
{{param|number|blue|The blue component (0-255).}}
 +
=== Returns ===
 +
Nothing.
 +
 +
== Function ==
 +
{{newin|[[0.8.0]]|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
love.graphics.setBackgroundColor( red, green, blue, alpha)
 +
</source>
 +
=== Arguments ===
 +
{{param|number|red|The red component (0-255).}}
 +
{{param|number|green|The green component (0-255).}}
 +
{{param|number|blue|The blue component (0-255).}}
 +
{{param|number|alpha|The alpha component (0-255).}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 21:45, 24 July 2011

Sets the background color.

Function

Synopsis

love.graphics.setBackgroundColor( red, green, blue )

Arguments

number red
The red component (0-255).
number green
The green component (0-255).
number blue
The blue component (0-255).

Returns

Nothing.

Function

Available since LÖVE 0.8.0
This variant is not supported in earlier versions.

Synopsis

love.graphics.setBackgroundColor( red, green, blue, alpha)

Arguments

number red
The red component (0-255).
number green
The green component (0-255).
number blue
The blue component (0-255).
number alpha
The alpha component (0-255).

Returns

Nothing.

Function

Available since LÖVE 0.7.0
This variant is not supported in earlier versions.

Synopsis

love.graphics.setBackgroundColor( rgb )

Arguments

table rgb
A numerical indexed table with the red, green and blue values as numbers.

Returns

Nothing.

See Also


Other Languages