Modulators node

Palette

Extracts a small color palette from a reference image or live video, clustering colors in Oklab space with sort, chroma, and mood-shaping controls (hue shift, saturation, brightness).

Download the patchRead it in the Field Guide

The Palette node in Infinite, showing its inputs, controls and outputs.

What it does

Palette is a modulator: it makes a moving value that can drive any control on the canvas. It takes picture in and gives colour palette out.

Try it

Feed in a still-life photo and pipe its palette into every Ramp and material color in the patch for one cohesive mood.

Palette (image)Ramp / Material Color

Inputs and outputs

Inputs

  • picture ref

Outputs

  • colour palette out

Controls

Every control with a range can be driven by a modulator, a note, an audio level or a sketch.

ControlRange or optionsDefault
swatches2 to 85
orderLuminance, Weight, Hue0
blendSteps, Smooth0
min chroma0 to 0.20.0399999991
include neutralson or offoff
hue-0.5 to 0.50
saturation0 to 21
brightness-0.4 to 0.40
spread0 to 21
liveon or offoff
rate1 to 608
sample16 to 25696
seed0 to 641

Example patch

This patch wires Palette to what it needs and shows the result. Download it, then use File, Open in Infinite, or read it here: it is plain text.

infinite-patch 1
rev 2
# Palette: a starting patch for the Palette node
node 1 Modulators Palette
  id node
  pos 520 300
end
node 2 Source Ramp
  id in0
  pos 0 300
end
node 3 Source Shape
  id shape
  pos 1080 300
end
node 4 Utility Output
  id out
  pos 1640 300
end
cable node 0 in0
pal shape 0 node 0
cable out 0 shape

More modulators nodes