palette
Extract dominant colors, generate hue-shifted shading ramps, or apply preset color sets, then write them to a sprite's color data.
Instructions
Read/extract/generate/set palettes. extract{max}: dominant colors of the sprite or any image path. ramps:[{base,steps?=5,hueShift?=20,contrast?=1}]: hue-shifted shading ramps. colors: hex list/preset. set=true writes colors+extracted+ramps to the sprite palette. No args: current palette.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| path | No | ||
| ramps | No | ||
| colors | No | hex list or preset (pico8|db16|sweetie16|gameboy) | |
| extract | No |