NumberFlow, color nodes
These nodes provide various color operations.
The four channels of a color are floating-point values and are not constrained to the 0–1 range.
However, when setting the pixels of a texture they will be clamped and converted to lower precision values.
- From Floats
- Explicitly sets the four components of a color.
- From Vector3
- Uses the XYZ axes of a vector for the RGB channels of a color. Alpha is always 1.
- Adds two colors together, adding all channels individually.
- Add Add
- Adds three colors together, adding all channels individually.
- Multiply all components of a color with some factor.
- Clamps all color channels to the 0–1 range. Use this if you need clamped values for further
computation. It is typically not needed for the final color.
- Produces a color by evaluating a Gradient at some point.
Color blending works like Photoshop layer blend modes, with a bottom color and a blend color on top of it. The alpha
channel of the top color determines the strength of the blend. An alpha of zero leaves the bottom
color unchanged, while an alpha of one results in a full blend. A negative alpha results in incorrect
interpolation, which produces different effects.
Blend results are not clamped. Some blends results could be outside the 0–1 range for some blend modes.
Other blends modes are guaranteed to stay inside the range if their inputs are also in range.
The example images use the following input values.
Normal blending. Works like alpha blending.
- Color Burn
Color burn blending. Results can go outside 0–1 range.
- Linear Burn
Linear burn blending. Results can go outside the 0–1 range.
- Color Dodge
Color dodge blending. Results can go outside the 0–1 range.
- Linear Dodge
Linear dodge blending. Results can go outside the 0–1 range.
Overlay blending. Results can go outside the 0–1 range.
- Hard Light
Hard light blending. Results can go outside the 0–1 range.
- Soft Light
Soft light blending.
You can extract single channels as floats or set individual channels of a color.
- Get Red
- Extract the red channel from a color.
- Get Green
- Extract the green channel from a color.
- Get Blue
- Extract the blue channel from a color.
- Get Alpha
- Extract the alpha channel from a color.
- Get Channel
- Extract a channel from a color using an index.
- Set Red
- Set the red channel of a color.
- Set Green
- Set the green channel of a color.
- Set Blue
- Set the blue channel of a color.
- Set Alpha
- Set the alpha channel of a color.
- Set Channel
- Set a channel of a color using an index.