COLORLERP
Returns a Linear Interpolation between two or more colors by a fraction.
js
COLORLERP(fraction, color_a, color_b, ...color_n)
Parameters
fraction
- Fraction used for the interpolation (between 1 and 0).color_a
- Hex, rgb(), or rgba() value for the first color.color_b
- Hex, rgb(), or rgba() value for the second color.color_n
- Hex, rgb(), or rgba() value for any other colors.(optional)
Examples
js
COLORLERP(0.5, "#FF0000", "#FFFF00")
Result: rgba(255, 127, 0, 1.0000)
Note: This will return a color 50% between red (#FF0000) and yellow (#FFFF00).