Saved palettes
aseprite_paletteSave, list, delete, and generate named color palettes for consistent reuse across sprites and sessions, including hue-shifted shading ramps and color extraction from images.
Instructions
Stores named palettes (character -> color) on disk so they can be reused across sprites and sessions via paletteName in aseprite_pixel_map, aseprite_read_pixels, aseprite_animation. Actions: save (name + colors), list (all saved palettes), delete (name), from_image (name; collects the colors of the visible frame, or of layer/rect, and saves them with generated keys), ramp (builds hue-shifted shading ramps – cool, saturated shadows and warm highlights – from base colours; e.g. ramps [{"base":"#d63a3a","keys":"DmrRH"}] gives 5 keys dark->light with the base in the middle; saved when name is given).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Palette name (not needed for list; optional for ramp) | |
| rect | No | from_image only | |
| frame | No | Frame number, 1-based (default: active frame) | |
| layer | No | Layer name (default: active layer) | |
| ramps | No | ramp only | |
| action | Yes | ||
| colors | No | save only: character -> hex color |