Skip to content

hueShiftNormalized

hueShiftNormalized(inputColor, amount): Node<"vec4">

Defined in: packages/nodes/src/color/hueShift.ts:63

Shift hue by a normalized amount (0-1 maps to 0-360 degrees).

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

amount

FloatInput

Hue shift amount (0-1, wraps around)

Returns

Node<"vec4">

Color with shifted hue

Example

// Shift hue by 25%
hueShiftNormalized(texture(tex, uv()), 0.25)