MotionScript

@motion-script/core


@motion-script/core / InvertChannel

Type Alias: InvertChannel

InvertChannel = "red" | "green" | "blue" | "rgba" | "alpha" | "hue" | "luminance"

Defined in: attributes/shape/effects/implementations/invert.ts:13

Which channel(s) / colour space component the invert is applied to.

  • 'red' | 'green' | 'blue' — invert a single RGB channel.
  • 'rgba' — invert red, green and blue (alpha untouched).
  • 'alpha' — invert the alpha channel.
  • 'hue' — rotate hue by 180°.
  • 'luminance' — invert perceptual luminance (BT.709) while preserving chroma.