complimentRgb function

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

returns an length n array of rgb Vector3. The 0th color is the same as the input rgb, 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>> complimentRgb(num n, List<num> color) {
  return complimentHsl(n, rgb2hsl(color)).map(hsl2rgb).toList();