Nodes > Functions > Util > Gradient
Returns the value of a linearly interpolated procedural gradient. The sample position is a 0-1 value given by the Ratio input.
Inputs
Name | Type | Description |
---|---|---|
Ratio | float | A 0-1 value that defines where along the gradient to sample from. Values outside the 0-1 range will be subject to the Wrap Mode setting. |
Gradient 0 Color at Ratio '0' | float | The first value of the gradient |
Gradient 1 Color at Ratio '0.25' | float | The second value of the gradient |
Gradient 2 Color at Ratio '0.5' | float | The third value of the gradient |
Gradient 3 Color at Ratio '0.75' | float | The fourth value of the gradient |
Gradient 4 Color at Ratio '1' | float | The fifth value in the gradient |
Outputs
Name | Type | Description |
---|---|---|
Color | float | The computed gradient value |
Properties
Name | Type | Description |
---|---|---|
Channels | dropdown | The number of color channels to use for gradient values |
Gradients | int | The number of values used in the gradient |
Wrap Mode | dropdown | Controls how the gradient is sampled if a ratio value falls outside the 0-1 range. These options are similar to the wrap modes on texture parameters |
Expose Ratios | bool | Exposes ratio inputs on the node for all values. This allows for gradient values to dynamically change their position. |
Note the first and last values of the gradient are locked at 0.0 and 1.0, respectively. Gradient 0 Ratio | float | The position of the first value of the gradient Gradient 1 Ratio | float | The position of the second value of the gradient Gradient 2 Ratio | float | The position of the third value of the gradient Gradient 3 Ratio | float | The position of the fourth value of the gradient Gradient 4 Ratio | float | The position of the fifth value of the gradient
Was this page helpful?