pixel_create_canvas
Create a new pixel art canvas saved as a PNG file with specified width, height, background color, and optional preview. Automatically creates parent directories; does not overwrite existing files unless overwrite is set to true.
Instructions
Create a new pixel art canvas saved as a PNG file.
The canvas is true-size (one canvas pixel = one image pixel); keep sprites small (e.g. 16x16, 32x32, 64x64) and upscale later with pixel_export_png. Parent directories are created automatically. Refuses to replace an existing file unless overwrite=true.
Returns: JSON {"canvas", "width", "height", "background"}; plus a rendered image of the canvas when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |