get_pixels
Read pixel colors from a rectangular region of an Aseprite sprite, optionally targeting one layer, to inspect exact colors before editing.
Instructions
Read the pixel colours of a region.
Args:
layer: Read this layer alone instead of the composite. This matters more than
it sounds: drawing tools write to ONE layer, so the composite is not the
surface your next edit will act on. A fill whose boundary is drawn on a
different layer will flood the whole canvas while the composite looks as
though it should have stopped.
format: "rows" (default) gives rows of "#RRGGBBAA" strings. "map" gives a
`legend` of symbol to colour plus one string per row, which is around a
tenth the size: a 16x16 icon of three colours costs roughly 3,400
characters as rows and 350 as a map, and defects like a one-pixel offset
are visible in it at a glance.
The region is capped at 64x64 (4096 pixels) per call to keep responses small, so
read in tiles for bigger areas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Default: 0. | |
| y | No | Default: 0. | |
| frame | No | Default: 1. | |
| layer | No | ||
| width | No | ||
| format | No | Default: "rows". | rows |
| height | No | ||
| filename | Yes |