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