natiny.model.set_color
natiny.model.set_color(model, color)
Sets this model's tint - the per-model form of natiny.render.set_color, which a bulk draw has no way to set per object.
Parameters
| Name | Type | Description |
|---|---|---|
model |
number |
Model handle |
color |
number |
Packed color from natiny.color.from_rgba or natiny.color.from_hex |
Example
natiny.model.set_color(buoy, natiny.color.from_hex("#ff8c26"))