ixfx
    Preparing search index...

    Function scale

    • Produces a stepped scale of colours.

      const steps = Colour.scale([ `red`, `green` ], 10);
      for (const step of steps) {
      // A CSS colour string
      }

      cssLinearGradient can produce a smooth gradient in CSS on the basis of the stepped colours.

      Parameters

      Returns string[]