palette_edit
Add, insert, remove, move, sort, reverse, ramp, or dedupe palette colors in Aseprite sprites; indexed pixels are remapped so colors stay intact.
Instructions
Edits the palette structure: add or insert colors, remove entries, move entries, sort (by hue, saturation, value, lightness, luminance, red, green, blue, alpha), reverse a range, generate a ramp between two colors, or dedupe. In indexed sprites pixels are remapped so they keep their colors (set remapPixels=false to skip); pixels using removed colors move to the nearest remaining one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | insert/ramp: target index (default end) | |
| by | No | ||
| to | No | Range end, or the destination index for move | |
| from | No | Range start for remove/move/sort/reverse | |
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| space | No | ramp interpolation (default rgb) | |
| steps | No | ||
| action | Yes | ||
| colors | No | add/insert | |
| insert | No | ramp: insert instead of overwriting entries | |
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| indices | No | remove/move: entries to act on | |
| toColor | No | ramp end | |
| fromColor | No | ramp start | |
| descending | No | ||
| remapPixels | No |