complimentHsl function

List<List<num>> complimentHsl (
  1. num n,
  2. List<num> color

returns an length n array of hsl Vector3. The 0th color is the same as the input hsl, while the others are colours corresponding to an eve turn around the colour wheel. If n is 3 for example, the two other colours would represent a 1/3 and 2/3 rotation of the colour wheel.


List<List<num>> complimentHsl(num n, List<num> color) {
  var h = color[0];
  var s = color[1];
  var l = color[2];
  return List.generate(n, (i) => [_wrapNorm(h - (i / n)), s, l]);