Documentation / @ripl/core / interpolateColors
Function: interpolateColors()
interpolateColors(
colors):ColorInterpolator
Defined in: packages/core/src/color/scales.ts:44
Builds a colour interpolator from an array of colour stops. Position 0 returns the first stop, 1 the last, and intermediate positions interpolate (RGBA, channel-wise) between adjacent stops.
Parameters
| Parameter | Type |
|---|---|
colors | string[] |