Create colour palette / gradient
create_paletteCreate a reusable colour palette and gradient from a base hue or sampled image, outputting swatches as channels for downstream colour tools.
Instructions
Generate a reusable colour palette + gradient other tools can bind to. In 'harmony' mode it computes N swatches from a base hue and a colour-theory rule (complementary / analogous / triad / tetrad / monochrome); in 'from_source' mode it samples dominant colours from a source TOP. It builds a Ramp TOP gradient (key colours from a docked Table DAT) plus a Constant CHOP exposing each swatch as swatch{i}r/g/b channels — feed those into create_color_grade, generate_from_moodboard or bind_to_channel. Live BaseHue / Saturation / Value / Rule / Count controls are exposed on the parent. Builds standalone (a harmony palette needs no source).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How swatches are derived: 'harmony' computes them from a base hue + a colour-theory rule (pure maths); 'from_source' samples dominant colours from a source TOP. | harmony |
| name | No | Base name for the created nodes. | palette |
| rule | No | (harmony) Colour-theory spread: complementary (base + opposite), analogous (neighbours), triad (3 evenly spaced), tetrad (4 evenly spaced), monochrome (one hue, varied brightness). | triad |
| count | No | Number of swatches to produce (1..13; capped because the swatch Constant CHOP holds 40 channels = 13 RGB swatches). | |
| value | No | (harmony) Base value / brightness 0..1. | |
| source | No | (from_source) Absolute path of a TOP to sample dominant colours from. It is down-res'd to a tiny image and its pixels are read back; if missing/unreadable the palette falls back to a neutral greyscale ramp. | |
| base_hue | No | (harmony) Base hue on the colour wheel, 0..1 (0 = red, 0.333 = green, 0.666 = blue). | |
| saturation | No | (harmony) Base saturation 0..1 (0 = grey, 1 = vivid). | |
| parent_path | No | COMP to build the Ramp TOP + swatch CHOP inside. | /project1 |
| expose_controls | No | Add BaseHue / Saturation / Value / Rule / Count custom parameters to parent_path. | |
| analogous_spread | No | (harmony, analogous rule) Hue step between neighbours, 0..0.5 (0.083 ≈ 30°). |