set_pixel
Paint a single pixel at specified x,y coordinates with a hex color, optionally targeting a layer or frame, all within an atomic undo transaction.
Instructions
Paints a single pixel at (x, y) with the specified color within an atomic undo transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in canvas space | |
| y | Yes | Y coordinate in canvas space | |
| color | Yes | Hex color (#RRGGBBAA or #RRGGBB) | |
| layerName | No | Optional target layer name | |
| layerIndex | No | Optional target layer index | |
| frameNumber | No | Target frame number (1-indexed) | |
| returnPreview | No | When true, returns updated preview image |