New project
sprite_new_projectCreate an indexed pixel-art project with a defined canvas size, palette, frames, and layers before drawing or animating sprites.
Instructions
Create an indexed pixel-art project: canvas size, palette, frames and layers. Always call this first. Classic sizes: 16×16 icons, 32×32 characters, 64×64 bosses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional stable id (slug). | |
| name | Yes | Project name, e.g. 'Forest Knight'. | |
| tags | No | Project tags, e.g. ['rpg','hero']. | |
| width | No | Canvas width in pixels (default 32). | |
| frames | No | Initial frame count (default 1). | |
| height | No | Canvas height in pixels (default 32). | |
| layers | No | Layer names bottom→top, e.g. ['background','art','fx'] (default ['art']). | |
| palette | No | Built-in palette name (default 'db32'). Call sprite_list_palettes for options. | |
| durationMs | No | Frame duration in ms (default 100 = 10 fps). |