draw_pixels
Set individual pixels on an Aseprite layer/frame in one undo step using coordinate lists or character-grid rows with a color legend.
Instructions
Sets individual pixels on a layer/frame (one undo step). Either 'pixels' as [[x,y,color],...] / [{x,y,color}], or pixel art as 'rows' of characters with a 'legend' mapping each character to a color; rows start at (x,y). Unmapped ' ' and '.' are skipped; map '.' to 'transparent' to erase. The cel grows as needed; pixels outside the canvas are dropped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left of the rows grid (default 0) | |
| y | No | Top of the rows grid (default 0) | |
| rows | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| blend | No | Alpha-blend over existing pixels instead of replacing | |
| frame | No | 1-based frame number. Defaults to the active frame (or 1). | |
| layer | No | Layer name, 'Group/Child' path, or 1-based index from get_sprite_info. Defaults to the active layer. | |
| legend | No | ||
| pixels | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch |