Palette From Gradient
Generates a palette by sampling evenly-spaced colors from an embedded gradient. Edit colors via the gradient editor; slot names persist across swatch count changes.
The colors come from a gradient editor built into the node: to change a swatch, edit the gradient. Swatch Count (2 to 64) sets how many evenly spaced samples the palette holds, and the first and last swatches always equal the gradient endpoints.
The editor is the one from Gradient and Gradient Map, with the same Interpolation and Hue Path options, so you can build perceptually smooth ramps (OKLCh with Hue Path on Longer for a vivid rainbow), pigment-mixing palettes (Kubelka-Munk), or hard-stepped retro palettes (Constant) without placing swatches by hand.
Each swatch shows its color beside an editable name. Typed names survive Swatch Count changes, so lowering the count and raising it again brings them back. Right-click a name to reset it (“Slot 1”, “Slot 2”, and so on). The output plugs into Palette Remap and Export Batch like a regular Palette node.
Parameters
Section titled “Parameters”Pins
Palette
Display name for this palette
Number of evenly-spaced colors sampled from the gradient (2-64)
Per-swatch name overrides (object keyed by swatch index)
Gradient
Number of gradient stops (s2..sN are injected dynamically)
Stop 0 position
Stop 0
Stop 1 position
Stop 1
Color space used to blend between gradient stops
Direction taken around the hue wheel between stops.
- Shorter: pick the shorter arc (default).
- Longer: pick the longer arc; useful for two-stop rainbows.
- Increasing: hue value monotonically increases.
- Decreasing: hue value monotonically decreases.
Usage Tips
Section titled “Usage Tips”- Give slots descriptive names; Export Batch uses them as filenames.
- Use the Export Palette button to save the sampled colors as
.gpl,.ase, or.palfor reuse in GIMP, Krita, Aseprite, and other tools.