Documentation / @andrew_l/toolkit / interpolateColor
Function: interpolateColor() ​
interpolateColor(
color1
,color2
,factor
):ColorChannels
Linear color interpolating
Parameters ​
color1 ​
string
| ColorChannels
color2 ​
string
| ColorChannels
factor ​
number
Returns ​
Example ​
ts
// 'rgba(50, 50, 50, 1)'
interpolateColor(
'rgb(0, 0, 0)',
'rgb(100, 100, 100)',
0.5
);