lovr.graphics.getColor
Returns the current global color factor. Color components are from 0.0 to 1.0. Every pixel drawn will be multiplied (i.e. tinted) by this color.
r, g, b, a = lovr.graphics.getColor()
Arguments
None
Returns
Name | Type | Description |
r | number | The red component of the color. |
g | number | The green component of the color. |
b | number | The blue component of the color. |
a | number | The alpha component of the color. |
Notes
The default color is (1.0, 1.0, 1.0, 1.0)
.
See also
lovr.graphics.setColor
lovr.graphics