Invert
Turns the colors of a texture into their opposites.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Texture | The inverted texture. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | Texture | The texture to invert. |
Parameters
| Name | Type | Description |
|---|---|---|
| Red | Bool | Whether the red channel is inverted. |
| Green | Bool | Whether the green channel is inverted. |
| Blue | Bool | Whether the blue channel is inverted. |
| Alpha | Bool | Whether the alpha channel is inverted, which turns an opaque picture transparent. |
| Formatadvanced | Enum | The 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