Lurker News
I had this idea kicking around in my head for quite a while. Took an evening to make this, and a short morning to polish it a bit. So here it is!

Comments (169) 64 threads

Earlier comments
pc861 reply#
I like the way you're displaying this.

How did you decide on the coordinates for each block of color? KNN on a traditional color wheel?

CodesInChaos#
It's cheating a bit and using `saturation + brightness / 5` as radius. This separates colors with the same saturation and hue, in particular grays.

    // Based on https://stackoverflow.com/a/54522007/91238 .
    // I've tweaked it to spread out some of the colors (especially they greys)
    // that don't fit well into a true H/S wheel.
    let colorRadius = (s + v/5)*0.75 * radius;
    let colorAngle = h/360 * 2 * Math.PI;
FernandoMax#
Thanks Thomas!

Load more comments