Returns a function that interpolates between two colours. Returns string colour values.
const i = interpolator(`blue`, `red`);i(0.5); // Get the colour at 50%, as a string. Copy
const i = interpolator(`blue`, `red`);i(0.5); // Get the colour at 50%, as a string.
To work with structured colour values, use one of the space's interpolate functions.
interpolate
Returns a function that interpolates between two colours. Returns string colour values.
To work with structured colour values, use one of the space's
interpolate
functions.