change_color_mode
Convert a sprite to RGB, grayscale, or indexed color, adding optional dithering to control palette reduction.
Instructions
Converts the sprite to RGB, grayscale or indexed, with optional dithering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| rgbmap | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| toGray | No | ||
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| dithering | No | ||
| fitCriteria | No | ||
| ditheringFactor | No | ||
| ditheringMatrix | No | e.g. 'bayer2x2', 'bayer4x4', 'bayer8x8' |