erase_color
Remove all pixels of a specific color by making them transparent. Specify the color and tolerance for exact or similar matches.
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 |
|---|---|---|---|
| color | Yes | ||
| filename | Yes | ||
| tolerance | No | ||
| layer_name | Yes | ||
| frame_index | Yes |