erase_region
Erase a rectangular region of pixels by making them transparent in a specified layer and frame of an Aseprite file using sprite-global coordinates.
Instructions
Erase (make transparent) a rectangular region of pixels.
Coordinates are sprite-global.
Args: filename: Aseprite file to modify layer_name: Layer to operate on frame_index: Frame index starting at 1 x: Left edge of the region y: Top edge of the region width: Region width height: Region height
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes |