|
Calculates gradient color based on value.
syntax
GradientColor (
value,
min,
max,
minColor,
maxColor
)
or
GC(
value,
min,
max,
minColor,
maxColor
)
*GC stands for GradientColor.
Parameters
value
|
|
Type:
|
Number
|
|
value.
|
min
|
|
Type:
|
Number
|
|
The minimum value.
|
max
|
|
Type:
|
Number
|
|
Maximum value.
|
minColor
|
|
Type:
|
Number
|
|
The color at the minimum value.
|
maxColor
|
|
Type:
|
Number
|
|
The color at maximum value.
|
Return Value
|
|
Type:
|
i color letter
|
|
Returns the gradient color.
|
Explanation
Calculates the gradient color by value.
The bind script can be used as follows:
|
Example
$HSIN is a SIN value that changes between 0 and 100 in one second cycle. In the example below, it changes from black to red and from red to black in one second cycle.
|
GC($HSIN1000, 0, 100, "#FF0000", "#000000")
|
|
Supported
reference
GradientColor (GC)
RGB
|