Skip to content

Palette From Gradient

Palette From Gradient
Color

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.

Palette From Gradient produces a palette whose colors are sampled from a gradient editor built into the node. The gradient is the source of truth for swatch colors: to change a swatch’s color you edit the corresponding gradient stop. The Swatch Count slider (2 to 32) sets how many evenly-spaced samples the palette contains, and the first and last swatches always equal the gradient endpoints.

The gradient editor is the same one used by the Gradient and Gradient Map nodes, so all seven interpolation modes (RGB, Linear sRGB, OKLab, OKLCh, HSV, Kubelka-Munk, Constant) and the Hue Path control work the same way. This makes it easy to design perceptually smooth color ramps or pigment-mixing palettes without dropping individual swatches by hand.

Each swatch shows a read-only color preview alongside an editable name. Names you type are preserved across Swatch Count changes: reducing the count and then increasing it again restores the names rather than replacing them with defaults. Right-click a name to reset it to the default (“Slot 1”, “Slot 2”, and so on). The output plugs into Palette Remap and Export Batch the same as a regular Palette node.

Pins

PalettePalette
Output

Palette

Palette NameText
Default: My Palette

Display name for this palette

Swatch CountInteger
Default: 5 Range: 2–32

Number of evenly-spaced swatches sampled from the gradient

Name OverridesData
Default: {}

Per-swatch name overrides (object keyed by swatch index)

Gradient

Stop CountInteger
Default: 2 Range: 2–16

Number of gradient stops (s2..sN are injected dynamically)

Stop 0 PositionNumber
Default: 0.00 Range: 0.00–1.00

Stop 0 position

Stop 0Color (RGBA)
Default: rgba(0, 0, 0, 255)

Stop 0

Stop 1 PositionNumber
Default: 1.00 Range: 0.00–1.00

Stop 1 position

Stop 1Color (RGBA)
Default: rgba(255, 255, 255, 255)

Stop 1

InterpolationChoice
Default: RGB

Color space used to blend between gradient stops

  • RGBDefault. Blends red, green, and blue channels directly. Fast and predictable.
  • Linear sRGBBlends in linear-light space, which keeps midpoints from looking dim.
  • OKLabPerceptually smooth blends without the muddy midpoints you can get from blending two contrasting colors in RGB.
  • OKLChLike OKLab but preserves chroma through the midpoint, so vivid contrasting hues stay vivid.
  • HSVSweeps through the hue wheel for vivid color transitions.
  • Kubelka-MunkPigment-mixing model where blends behave like real paint rather than light.
  • ConstantHard steps between gradient stops — useful for retro stepped palettes.
Hue PathChoice
Default: Shorter
HSV / OKLCh interpolation only

Direction taken around the hue wheel

  • ShorterDefault. Take the shorter path around the hue wheel between stops.
  • LongerTake the longer path around the hue wheel. Useful for two-stop rainbow palettes.
  • IncreasingAlways increase the hue value when moving between stops.
  • DecreasingAlways decrease the hue value when moving between stops.
  • Use OKLCh interpolation with Hue Path = Longer to design rainbow palettes that stay vivid through the midpoint.
  • Pick Kubelka-Munk when you want palette transitions that mix like real paint pigments rather than light.
  • Set Constant interpolation to step between gradient stops without blending - useful for hard-edged retro palettes.
  • Edit slot names with descriptive labels; they’re used as filenames when wired into Export Batch.
  • Use the Export Palette button to save the sampled colors as .gpl, .ase, or .pal for reuse in GIMP, Krita, Aseprite, and other tools.