natiny.render.clear
natiny.render.clear(color)
Clears the currently bound render target with the specified color.
Parameters
| Name | Type | Description |
|---|---|---|
color |
number |
Packed color from natiny.color.from_rgba or natiny.color.from_hex |
Example
natiny.render.clear(natiny.color.from_hex("#1a1a26"))
Notes
- The clear value is applied when the current render pass begins. Call it before other draws intended for that pass.