Documentation / @ripl/core / ColorInterpolator
Type Alias: ColorInterpolator ​
ColorInterpolator = (
position) =>string
Defined in: packages/core/src/color/scales.ts:15
A function mapping a normalized position (0–1) to a CSS color string.
Parameters ​
| Parameter | Type |
|---|---|
position | number |
Returns ​
string