replace_color
Swap all occurrences of a source hex color with a target hex color across a cel or sprite in a single undo transaction.
Instructions
Replaces all occurrences of fromColor with toColor across the cel or sprite in a single undo transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toColor | Yes | Replacement color (hex) | |
| fromColor | Yes | Source color to replace (hex) | |
| layerName | No | ||
| tolerance | No | ||
| frameNumber | No | ||
| returnPreview | No |