create_canvas
Set up a new blank pixel canvas with custom width, height, color mode, and retro palette, ready for drawing and exporting pixel art textures and tilesets.
Instructions
Initializes a new in-memory pixel canvas with specified dimensions and palette.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional custom ID or name for the canvas | |
| mode | No | Color mode (default: indexed) | |
| width | Yes | Canvas width in pixels (e.g. 16, 32, 64) | |
| height | Yes | Canvas height in pixels (e.g. 16, 32, 64) | |
| palette | No | Retro palette name to bind to the canvas (default: db32) | |
| backgroundColor | No | Initial background color (hex string like #000000 or palette index) |