lovr.graphics.setBackgroundColor
Sets the background color used to clear the screen. Color components are from 0.0 to 1.0.
lovr.graphics.setBackgroundColor(r, g, b, a)
Arguments
Name | Type | Default | Description |
r | number | The red component of the background color. | |
g | number | The green component of the background color. | |
b | number | The blue component of the background color. | |
a | number | 1.0 | The alpha component of the background color. |
Returns
Nothing
lovr.graphics.setBackgroundColor(hex)
Arguments
Name | Type | Description |
hex | number | A hexcode like 0xffffff to use for the background (does not support alpha).
|
Returns
Nothing
lovr.graphics.setBackgroundColor(color)
Arguments
Name | Type | Description |
color | table | A table containing 3 or 4 color components. |
Returns
Nothing
Notes
The default background color is (0.0, 0.0, 0.0, 1.0)
.
See also
lovr.graphics.getBackgroundColor
lovr.graphics