Draw pixel map
aseprite_pixel_mapDraw exact pixel art in Aseprite using compact character rows and a palette, leaving '.' unchanged; supports stamps, files, and frame/layer targeting.
Instructions
Most token-efficient way to draw many exact pixels: a palette of single-character keys and one text row per pixel row. '.' and space leave the pixel unchanged; map a key to '#00000000' to erase. One undo step. Example: palette {"k":"#222034","y":"#fbf236"}, rows ["..kk..", ".kyyk.", "kyyyyk"]. Repeated parts: define stamps once and draw them with place. Generated art: write the data to a .json file and pass file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge of the map on the canvas (default 0) | |
| y | No | Top edge of the map on the canvas (default 0) | |
| file | No | Absolute path of a .json file: an array of rows, or an object with rows/palette/x/y/stamps/place; inline arguments override it | |
| rows | No | One string per pixel row, top to bottom | |
| frame | No | Frame number, 1-based (default: active frame) | |
| layer | No | Layer name (default: active layer) | |
| place | No | Stamps to draw after rows, in order: [name, x, y] or [name, x, y, "h"|"v"|"hv"] (flip); x/y relative to the map | |
| stamps | No | Reusable pixel maps: {"name": {"rows": [...], "palette"?: {...}}} | |
| palette | No | Single character -> hex color (required unless paletteName is given) | |
| paletteName | No | Name of a palette saved with aseprite_palette |