hueShift
hueShift(
inputColor,angle):Node<"vec4">
Defined in: packages/nodes/src/color/hueShift.ts:21
Shift the hue of a color using a rotation matrix in RGB space. This is more efficient than RGB->HSV->RGB conversion.
Parameters
inputColor
Node<"vec4">
The input color (vec4 with alpha)
angle
Hue shift angle in radians (0 to 2*PI for full cycle)
Returns
Node<"vec4">
Color with shifted hue
Examples
// Shift hue by 90 degreeshueShift(texture(tex, uv()), Math.PI / 2)// Animate rainbow effecthueShift(texture(tex, uv()), timeUniform)