2
Nodes/Image/Invert
Chromum edited this page 2025-05-09 10:33:51 +00:00

Invert


🔌 INPUT PORTS

Name Type Description
inputTexture ImageData The input image whose colors will be inverted.

📤 EXPORT PORTS

Name Type Description
outputTexture ImageData The output image with inverted RGB channels.

📝 DESCRIPTION

The Invert node inverts the red, green, and blue channels of every pixel in the input texture.
Alpha is preserved as-is. This node can be used to create effects like photo negatives or simple stylizations.

Inversion formula per channel:

R = 255 - R  
G = 255 - G  
B = 255 - B  
A = A

This node is derived from BaseImageNode.


⚠️ KNOWN ISSUES

  • Currently only supports Color32 format via NativeArray.