Return result is an array of Color.js 'Colour' objects.
import { Colour } from'ixfx/visual' conststeps = Colour.scale(['red','green'], 10); for (conststepofsteps) { // Get a 'hsla(...)' string representation of colour // This can be used with the canvas, setting DOM properties etc. constcss = Colour.toString(step); }
cssLinearGradient can produce a smooth gradient in CSS on the basis
of the stepped colours.
Produces a stepped scale of colours.
Return result is an array of Color.js 'Colour' objects.
cssLinearGradient can produce a smooth gradient in CSS on the basis of the stepped colours.