Add Nodes/Image/Invert
parent
6f38fc9dc0
commit
f6f58809c3
41
Nodes%2FImage%2FInvert.md
Normal file
41
Nodes%2FImage%2FInvert.md
Normal file
@ -0,0 +1,41 @@
|
||||
# Invert
|
||||
|
||||
---
|
||||
|
||||
## 🔌 INPUT PORTS
|
||||
|
||||
| Name | Type | Description |
|
||||
|-------------|-------------|------------------------------------------|
|
||||
| `inputTexture` | `ImageData` | The input image whose colors will be inverted. |
|
||||
|
||||
---
|
||||
|
||||
## 📤 EXPORT PORTS
|
||||
|
||||
| Name | Type | Description |
|
||||
|-------------|-------------|---------------------------------------------|
|
||||
| `inputTexture` | `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`](Nodes/BaseImageNode).
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ KNOWN ISSUES
|
||||
|
||||
- Currently only supports `Color32` format via `NativeArray`.
|
Loading…
x
Reference in New Issue
Block a user