Returns a function that interpolates between two colours. Returns string colour values.
By default takes a shorter direction and uses the OkLCH colourspace.
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
If you want to create discrete steps, consider createSteps or scale.
Returns a function that interpolates between two colours. Returns string colour values.
By default takes a shorter direction and uses the OkLCH colourspace.
To work with structured colour values, use one of the space's
interpolate
functions.If you want to create discrete steps, consider createSteps or scale.