oklchHueShift
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.
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
Input color (vec4 with alpha, sRGB)
Hue shift angle in radians
Returns
Section titled “Returns”Node <"vec4">
Color with shifted hue (sRGB)
Example
Section titled “Example”// Shift hue by 90 degrees in perceptually uniform spaceoklchHueShift(texture(tex, uv()), Math.PI / 2)