ixfx
    Preparing search index...
    • Produces a stepped scale of colours.

      // A scale of from red to green, with three colours in-between
      const steps = Colour.scale([ `red`, `green` ], { stepsBetween: 3 });
      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[]