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.
Add
Adds two colors together, adding all channels individually.
Add Add
Adds three colors together, adding all channels individually.
Scale
Multiply all components of a color with some factor.
Clamp
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.
Gradient
Produces a color by evaluating a Gradient at some point.

Blend Modes

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.

TopBottom
top bottom
Normal
normal
Normal blending. Works like alpha blending.
Darken
darken
Darken blending.
Multiply
multiply
Multiply blending.
Color Burn
color-burn
Color burn blending. Results can go outside 0–1 range.
Linear Burn
linear-burn
Linear burn blending. Results can go outside the 0–1 range.
Lighten
lighten
Lighten blending.
Screen
screen
Screen blending.
Color Dodge
color-dodge
Color dodge blending. Results can go outside the 0–1 range.
Linear Dodge
linear-dodge
Linear dodge blending. Results can go outside the 0–1 range.
Overlay
overlay
Overlay blending. Results can go outside the 0–1 range.
Hard Light
hard-light
Hard light blending. Results can go outside the 0–1 range.
Soft Light
soft-light
Soft light blending.

Channels

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.