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