Pass:setColor
EditSets the color used for drawing. Color components are from 0 to 1.
Arguments
Name | Type | Default | 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 | 1.0 | The alpha component of the color. |
Returns
Nothing
Arguments
Name | Type | Description |
t | table |
Returns
Nothing
Arguments
Name | Type | Default | Description |
hex | number | A hexcode. | |
a | number | 1.0 | The alpha component of the color. |
Returns
Nothing
Notes
The default color is (1, 1, 1, 1)
.