set_color_mode
Convert a sprite to RGB, indexed, or gray mode with optional dithering when creating an indexed palette.
Instructions
Convert a sprite between colour modes ("rgb", "indexed", "gray").
When converting to "indexed", dithering can be "none", "ordered", or "old" to control how RGB colours are mapped to the palette.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| dithering | No | none | |
| color_mode | Yes |