ixfx
    Preparing search index...

    Function interpolator

    • 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.

      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.

      Parameters

      Returns (amount: number) => string