oklchLerp
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).
Parameters
Section titled “Parameters”colorA
Section titled “colorA”Node <"vec4">
First color (vec4, sRGB)
colorB
Section titled “colorB”Node <"vec4">
Second color (vec4, sRGB)
Interpolation factor (0-1)
Returns
Section titled “Returns”Node <"vec4">
Interpolated color (vec4, sRGB)
Example
Section titled “Example”// Blend between two colors perceptuallyoklchLerp(color1, color2, mixUniform)