Returns a function that interpolates between two colours. Returns structured colour values.
If you want the result as a ready-to-use CSS string, use interpolatorDualToString 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 Colour structure.
If you want to create discrete steps, consider createSteps or scale.
Returns a function that interpolates between two colours. Returns structured colour values. If you want the result as a ready-to-use CSS string, use interpolatorDualToString instead.
By default takes a shorter direction and uses the OkLCH colourspace.
If you want to create discrete steps, consider createSteps or scale.