So I generated random colors and blended them together using chroma.js.
It looks decent because the blending in chroma.js is amazing. However, notice there are two or 3 green spots (or more) in the image, and a few purple spots, etc. To make this look nicer, I was thinking it would be good to sort the colors before blending them, so they are more like the rainbow. Wondering if there is any way to do this or if it's possible somehow, I can't really imagine how to do this.
As far as I thought is this. For each color, calculate it's distance to one of the 6 rainbow colors. The closest to red goes first, then the closest to orange, etc. But I don't really see how to do that, seems complicated.