get_composite_rect
Read the combined RGBA pixel colors from a rectangular region of visible layers in an Aseprite file. Returns each pixel's coordinates and color values.
Instructions
Read VISIBLE RGBA over a rectangle (flattened composite of all layers).
The rectangular counterpart of get_composite_pixel — reads the composited pixels every visible layer produces, not a single cel.
Args: filename: Aseprite file to read x: Top-left x (sprite-global) y: Top-left y (sprite-global) width: Region width height: Region height frame_index: Frame index starting at 1
Returns: JSON array of {x, y, hex, r, g, b, a} objects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| frame_index | No |