get_composite_rect
Read the flattened RGBA composite of all visible layers within a rectangular region of an Aseprite file, returning pixel data with coordinates and colors.
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 |
|---|---|---|---|
| filename | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| frame_index | No |