hueRotate

Rotate the child's hue around the color wheel.

hueRotate(shift: ArgSpec): PointwiseEffect

Import effects from shaders/std and use effects.color.hueRotate.

shift is in degrees. 0 leaves the color unchanged, 180 swaps every color for its complement, 360 comes back around. Alpha kept.

Parameters

NameTypeNotes
shiftArgSpec

Example

effect: hueRotate(p('shift'))

Tip. Declare identityWhen: isZero('shift') so the filter is skipped at 0.

See also

  • saturate — Scale the child's saturation.
  • vibrance — Boost muted colors while leaving already-vivid ones mostly alone.
  • tint — Wash the child toward one color.

Used by

HueShift