adjust_palette_color
Adjust a palette color by modifying its hue, saturation, or lightness in HSL space. Edit in place or add a new variant to avoid manual hex computation.
Instructions
Nudge a palette color in HSL space: darken/lighten via lightness, shift saturation or hue. Saves the model from hand-computing hex. Edits in place (all pixels using it update), or appends a fresh variant with as_new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | Rotate hue, degrees | |
| name | No | ||
| index | Yes | Palette index | |
| as_new | No | Append a new entry instead of editing in place (default false) | |
| doc_id | Yes | Document id | |
| render | No | Include a render of the change (default true) | |
| lightness | No | Add to lightness, -1..1 (negative darkens) | |
| saturation | No | Add to saturation, -1..1 |