Function Block COLORGRADIENT

The Function Block COLORGRADIENT calculates a color of a linear gradient.

Input Position

For the calculation specified position between Color low and Color high. When exceeding or falling below the value, it is limited to Color low or Color high respectively.

Input Color Low

Defines the color for the beginning of the gradient. Expects a color as a string in hexadecimal format '#RRGGBB'.

Input Color High

Defines the color for the end of the gradient. Expects a color as a string in hexadecimal format '#RRGGBB'.

Input Start

Defines the value as a number for the start color of the gradient.

Input End

Defines the value as a number for the end color of the gradient.

Output #RGB

Returns the calculated color in the gradient as a string in the format '#RRGGBB'.

Output R

Returns the calculated red color in the gradient as a number between 0 and 255.

Output G

Returns the calculated green color in the gradient as a number between 0 and 255.

Output B

Returns the calculated blue color in the gradient as a number between 0 and 255.