Skip to main content
Documentation
Node Editor

Color Nodes

Build, split, and convert colors, including HSL conversion and a cosine palette.

This category contains 6 nodes.

Nodes

Color Grayscale

Converts a color to grayscale and keeps its white channels. It also outputs the overall lightness as a number.

Inputs: A color to convert.

NameTypeRangeDefault
ColorColorcolor[255, 255, 255, 255, 255, 255]

Outputs: Grayscale color and a lightness value (0 to 1).

NameTypeRange
ColorColorcolor
LightnessNumberany

Combine Color

Builds a color from separate channel values, so you control each channel on its own.

Inputs: One value each for the Red, Green, Blue, White, Amber, and UV emitters. Each value is that emitter's share of its full light output, on a 0-255 scale. 255 is the emitter at full, and 128 is half its light. Spectralite calculates the DMX level each fixture needs to put out that much light.

NameTypeRangeDefault
RedNumber0-2550
GreenNumber0-2550
BlueNumber0-2550
WhiteNumber0-2550
AmberNumber0-2550
UVNumber0-2550

Outputs: The combined color.

NameTypeRange
ColorColorcolor

Cosine Palette

Builds a smooth looping color ramp from four control vectors, with one component per RGB channel. Bias sets the average color, and Amplitude sets the contrast. Frequency sets how many times each channel cycles, and Phase sets where each channel starts. Sweep T with time or position for a smooth gradient.

Inputs: T (the position along the ramp, usually 0-1) plus the bias, amplitude, frequency, and phase vectors.

NameTypeRangeDefault
TNumber0-10
BiasVectorvec:0-1[0.5, 0.5, 0.5]
AmplitudeVectorvec:0-1[0.5, 0.5, 0.5]
FrequencyVectorvec[1, 1, 1]
PhaseVectorvec:0-1[0, 0.33, 0.67]

Outputs: The sampled color, with each channel clamped to the 0-255 scale, where 255 is that emitter at full.

NameTypeRange
ColorColorcolor

HSL to RGB

Converts Hue, Saturation, and Lightness to Red, Green, and Blue values. Color cycles and rainbow effects are easier to build in HSL than in RGB.

Inputs: Hue cycles through the rainbow every 1.0. Any value works because the node wraps it into 0-1, so a rising time input keeps cycling. Saturation runs from 0 (gray) to 1 (vivid). Lightness runs from 0 (black) through 0.5 (full color) to 1 (white).

NameTypeRangeDefault
HueNumberany (wraps every 1)0
SaturationNumber0-10
LightnessNumber0-10

Outputs: Red, Green, and Blue values. Each value is that emitter's share of its full light output on a 0-255 scale, where 255 is the emitter at full.

NameTypeRange
RedNumber0-255
GreenNumber0-255
BlueNumber0-255

RGBW to HSL

Extracts Hue, Saturation, and Lightness from a color. Use it to adjust a color in HSL terms.

Inputs: The color to analyze. Merge White blends the white channel into RGB before the conversion.

NameTypeRangeDefault
ColorColorcolor[0, 0, 0, 0, 0, 0]
Merge WhiteBooleanboolfalse

Outputs: Hue (0-1, rainbow position), Saturation (0-1, color intensity), Lightness (0-1, brightness).

NameTypeRange
HueNumber0-1
SaturationNumber0-1
LightnessNumber0-1

Split Color

Separates a color into its individual channels. Use it to read or change specific channels.

Inputs: A color to split.

NameTypeRangeDefault
ColorColorcolor[0, 0, 0, 0, 0, 0]

Outputs: Separate Red, Green, Blue, White, Amber, and UV values. Each value is that emitter's share of its full light output on a 0-255 scale, where 255 is the emitter at full.

NameTypeRange
RedNumber0-255
GreenNumber0-255
BlueNumber0-255
WhiteNumber0-255
AmberNumber0-255
UVNumber0-255