Skip to content

Invert

Node icon
Color

Inverts image channels, flipping colors to their complement per channel or all at once.

Invert subtracts each pixel value from 255, producing the complementary color. Red becomes cyan, white becomes black, etc. Each channel (R, G, B, A) can be inverted independently. When the input is a single-channel image or mask, the per-channel toggles collapse to one Invert control.

Alpha inversion is off by default to preserve transparency. Enable it when you need to flip a mask or alpha channel.

Pins

ImagePixels
InputRequired
MaskMask
InputOptional
ImagePixels
Output

Color

InvertToggle
Default: true
1ch input only

Invert the grayscale channel (255 - value). Shown when a single-channel input is connected

Invert RedToggle
Default: true

Invert the red channel (255 - value)

Invert GreenToggle
Default: true

Invert the green channel (255 - value)

Invert BlueToggle
Default: true

Invert the blue channel (255 - value)

Invert AlphaToggle
Default: false

Invert the alpha channel (255 - value). Off by default to preserve transparency

Mask

Mask FromChoice
Default: Luminance
Color image connected to the mask input

How the connected color image is read as a mask. Luminance: the image's brightness. Alpha: the image's transparency. Red / Green / Blue: a single channel

  • LuminanceRead the image's brightness as the mask. The default.
  • AlphaRead the image's transparency as the mask.
  • RedUse the red channel as the mask.
  • GreenUse the green channel as the mask.
  • BlueUse the blue channel as the mask.
Mask FitChoice
Default: None (native size)
Mask connected

How the mask is sized when it doesn't match the image. None: center at native size, no scaling. Stretch: scale to exactly match image dimensions. Fit: scale to fit inside image, preserving aspect ratio. Fill: scale to fill image, cropping overflow

  • None (native size)Center the mask at its native size, with no resizing. Unmasked regions are unaffected.
  • StretchStretch the mask to exactly match the image dimensions. May distort the mask shape.
  • Fit (letterbox)Scale the mask to fit inside the image, preserving aspect ratio. Letterboxes where needed.
  • Fill (crop)Scale the mask to fill the image, preserving aspect ratio. Crops edges if aspect ratios differ.
  • Invert only the Alpha channel to flip a mask, so selected becomes unselected.
  • Combine with Composite (Difference mode) for creative effects.
  • Connect a mask input to invert only specific regions of the image.