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 | {number} | A table of 3 or 4 color components. |
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).