Create colour palette / gradient
create_paletteGenerate a colour palette and gradient using harmony rules or by sampling an image. Produces swatches and a gradient for downstream 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).
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 |
| 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). | |
| value | No | (harmony) Base value / brightness 0..1. | |
| 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). | |
| analogous_spread | No | (harmony, analogous rule) Hue step between neighbours, 0..0.5 (0.083 ≈ 30°). | |
| 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. | |
| parent_path | No | COMP to build the Ramp TOP + swatch CHOP inside. | /project1 |
| name | No | Base name for the created nodes. | palette |
| expose_controls | No | Add BaseHue / Saturation / Value / Rule / Count custom parameters to parent_path. |