Skip to content

oklchLerp(colorA, colorB, t): Node <"vec4">

Defined in: packages/nodes/src/color/oklchLerp.ts:20

Interpolate between two colors in OKLCH space on the GPU. Handles hue wrapping (shortest path around the hue circle).

Node <"vec4">

First color (vec4, sRGB)

Node <"vec4">

Second color (vec4, sRGB)

FloatInput

Interpolation factor (0-1)

Node <"vec4">

Interpolated color (vec4, sRGB)

// Blend between two colors perceptually
oklchLerp(color1, color2, mixUniform)