⚫Construct Gradient
Parametrically construct a gradient.
Description
Takes a list of colors and an optional matching set of parameters and creates a new gradient from these stops that is then sampled by a unitized input, returning the color at the given parameter.

Name | Construct Gradient
Nickname | ConstGrad
Tab | Display
Panel | Colour
Division | 4
C | Colors (Colour) | A list of colors
S | Parameters (Number) | Matching unitized parameters. If empty, the colors will be evenly distributed.
T | Sample (Number) | Unitized sampling parameter 0-1.
M | Interpolation Mode (Integer) | Gradient interpolation mode. (0 = Linear, 1 = Blend)
C | Color (Colour) | Resulting color
none
Usage
Multiple colors can be added to the (C) input and will automatically be evenly distributed with parameters ranging from 0.0-1.0. The position of the colors can be shifted / ordered with the (P) input to adjust the weighting of the gradient.

Last updated