Returns a full HSL colour string (eg hsl(20,50%,75%)) based on a index.
It's useful for generating perceptually different shades as the index increments.
el.style.backgroundColor = goldenAgeColour(10);
Saturation and lightness can be specified, as numeric ranges of 0-1.
Returns a full HSL colour string (eg
hsl(20,50%,75%)
) based on a index. It's useful for generating perceptually different shades as the index increments.Saturation and lightness can be specified, as numeric ranges of 0-1.