natiny.render.set_color
natiny.render.set_color(color)
Sets the draw color used to tint all subsequent non-clear draws until it is changed or another window is bound.
Parameters
| Name | Type | Description |
|---|---|---|
color |
number |
Packed color from natiny.color.from_rgba or natiny.color.from_hex |
Example
natiny.render.set_color(natiny.color.from_hex("#ff0000"))