Create or resize the texture
texture_createCreates or resizes a project texture, keeping old pixels at the top-left and optionally updating the UV size.
Instructions
Creates the project texture, or resizes it (the canvas grows or shrinks and old pixels stay at the top-left). Also sets the project UV size unless set_uv_size is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | "#rrggbb", "#rrggbbaa", or "clear" / null for transparent | |
| name | No | Texture name for a new texture, for example "sword.png". | |
| width | No | Default the project UV width. | |
| height | No | Default the width. | |
| keep_pixels | No | Keep the old pixels when resizing. Default true. | |
| set_uv_size | No | Also set the project UV size. Default true. |