set_pixel
Set a single pixel on a canvas at specified (x, y) coordinates using a hex color or palette index, enabling precise pixel-level editing in retro pixel art.
Instructions
Sets a single pixel at (x, y) with a hex color or palette index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (0-indexed) | |
| y | Yes | Y coordinate (0-indexed) | |
| color | Yes | Hex color string (e.g. '#ff0055') or palette index (e.g. 5) | |
| canvas_id | Yes | Target canvas ID |