erase_color
Removes all pixels of a specified color from a layer in an Aseprite file, making them transparent. Configure tolerance for similar colors.
Instructions
Make all pixels of a given color transparent (like a magic eraser).
Args: filename: Aseprite file to modify layer_name: Layer to operate on frame_index: Frame index starting at 1 color: Hex color to erase, e.g. "#FF00FF" tolerance: Per-channel tolerance 0-255 (default 0 = exact match)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| color | Yes | ||
| tolerance | No |