Skip to content

oklchHueShift(inputColor, angle): Node <"vec4">

Defined in: packages/nodes/src/color/oklch.ts:100

Perceptually uniform hue shift using OKLCH. Unlike the Rodrigues rotation in hueShift(), this operates in a perceptually uniform space and produces visually equal hue steps.

Node <"vec4">

Input color (vec4 with alpha, sRGB)

FloatInput

Hue shift angle in radians

Node <"vec4">

Color with shifted hue (sRGB)

// Shift hue by 90 degrees in perceptually uniform space
oklchHueShift(texture(tex, uv()), Math.PI / 2)