generate_ramp
Generate a shading ramp from a base color by adjusting lightness, hue, and saturation across the ramp. Optionally apply the ramp to a sprite's palette.
Instructions
Generate a shading ramp from a base colour (dark -> light).
Produces `steps` colours by varying lightness across `light_range`, optionally
rotating hue by `hue_shift` total degrees across the ramp (classic pixel-art
hue shifting: cool shadows / warm highlights) and scaling saturation by
`saturation_shift` percent across the ramp.
Args:
filename: If set with apply, write the ramp into that sprite's palette.
apply: "none" (just return), "append" (add to palette), or "replace".
Returns the ramp as a list of "#RRGGBB" colours (darkest first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | none | |
| steps | No | ||
| filename | No | ||
| hue_shift | No | ||
| base_color | Yes | ||
| light_range | No | ||
| saturation_shift | No |