Produces a stepped scale of colours.
const steps = Colour.scale([ `red`, `green` ], 10);for (const step of steps) { // A CSS colour string} Copy
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.
Produces a stepped scale of colours.
cssLinearGradient can produce a smooth gradient in CSS on the basis of the stepped colours.