Complex gradient loop

And playing with the program and I am hallucinating with results. I have obtained this amazing gradient that you can see here:

colorMode( HSB, 360,100,100 );

color c = color( random(1,360), 100, 100 );


But sometimes the result is dirtier because the colors of the points art not as closer and organized in the colour wheel:

So how could I relate these points to follow the order of colors in colour wheel, from hue 1 to 360 in HSB color mode? Imagine that randoms colors are 22,45,154, 263,302 and 313, how could I distribute them like this: point 1(22), point 2(45), point 3(154), point 4(263), point 5(302), point 6(313)?

1 Like