aseprite_set_palette
Replace a document's color palette with an explicit list, defining the exact colors for indexed mode and optionally remapping pixels.
Instructions
Replace the document palette with an explicit colour list. In indexed mode this is the actual set of colours the artwork can use - which is how you keep a piece to a tight, coherent palette.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Palette size (defaults to the number of colours). | |
| remap | No | In indexed mode, remap existing pixels to the nearest new colour. | |
| colors | Yes | Ordered list of hex colours. | |
| document | No | Document to act on: a short name inside the art folder ("hero"), a relative path, or an absolute .aseprite path. Omit to use the active document. |