Invert

Turns the colors of a texture into their opposites.

Outputs

NameTypeDescription
OutputTextureThe inverted texture.

Inputs

NameTypeDescription
InputTextureThe texture to invert.

Parameters

NameTypeDescription
RedBoolWhether the red channel is inverted.
GreenBoolWhether the green channel is inverted.
BlueBoolWhether the blue channel is inverted.
AlphaBoolWhether the alpha channel is inverted, which turns an opaque picture transparent.
FormatadvancedEnumThe pixel format of the output. Auto keeps the format of the input when it can hold the result, and otherwise gives four channels at the precision of the input.

The Invert operator turns a picture into its negative. Every value becomes one minus itself, so black becomes white and every color becomes its opposite. On a gray mask it swaps what is kept and what is cut away.

Each channel is inverted on its own. With only Alpha on, the picture keeps its colors and its transparency flips. To invert only part of a picture, lay the result over the original with Blend and give it a mask.

A gray texture stays gray only when red, green and blue are all inverted or none of them. Inverting some of them tints it, and inverting alpha makes it fully transparent.

See also Color Correct, Grayscale, Blend.

Keywords: negative, flip, reverse, opposite, alpha