Color node

Color Mixer

Mix two colors with linear interpolation. Blend smoothly between any two RGBA colors using a mixing point slider -- perfect for creating dynamic color transitions, gradients, crossfades, and data-driven color mapping in real time.

Inputs

PortTypeDefault
First colorThe colour you get at mix 0. Alpha is blended along with the RGB channels.color—
Second colorThe colour you get at mix 1.color—
Mixing PointHow far across the blend to sit — 0 is purely the first colour, 1 purely the second. Clamped to 0…1, so pushing past those ends does nothing.float0.5

Outputs

PortType
Colorcolor

How It Works

Color Mixer performs component-wise linear interpolation (lerp) between two RGBA colors:

Result = First color x (1 - Mixing Point) + Second color x Mixing Point

Each channel (R, G, B, A) is interpolated independently. When the Mixing Point is 0, the output is exactly the first color. When it is 1, the output is exactly the second color. Any value in between produces a smooth blend.

The Mixing Point is not clamped, so values below 0 or above 1 will extrapolate beyond the two input colors.

Use Cases

  • Smooth transitions — Animate the Mixing Point with a Smooth node to create fluid color changes (e.g. day/night cycles, temperature indicators).
  • Data-driven indicators — Map a sensor value (0 — 1) to Mixing Point to show green-to-red status indicators based on live data.
  • Interactive blending — Connect Mouse X or a MIDI CC to Mixing Point for real-time manual color control.
  • Gradient construction — Chain multiple Color Mixer nodes to build multi-stop gradients (mix A-B, then mix result with C).
  • Crossfade effects — Blend between two colors that are themselves animated (e.g. two HSL Color nodes with different hue animations).

Tips

  • For mixing more than two colors, chain multiple Color Mixer nodes or use Math Expression to compute weighted averages of decomposed channels.
  • The interpolation operates in linear RGB space. For perceptually uniform blending, consider decomposing to HSL, interpolating Hue separately, and recomposing.
  • Values outside 0 — 1 for Mixing Point are valid and produce extrapolated colors, which can be useful for overshooting effects.
  • Alpha is also interpolated. Mixing an opaque color with a transparent one will produce a semi-transparent result at Mixing Point = 0.5.

Open Color Mixer in the interactive catalog →

Color Mixer is one of 381 nodes in Grafit Pro.

Free download. Every feature for 7 days, no card. Then €99.99 once — or keep playing your projects as a Player.

More Color nodes