ixfx
    Preparing search index...
    • Interpolates colours in Srgb space. Probably really ugly, use OkLch space isntead.

      const i = interpolator(`red`, `blue`);
      i(0.5); // Get 50% between these colours

      Parameters

      • colourA: string | Rgb
      • colourB: string | Rgb

      Returns (amount: number) => RgbScalar