16 comments

[ 3.5 ms ] story [ 29.3 ms ] thread
This is great, thank you for sharing. I need something like this for my current project I'm working on... Much easier than trying to build a color palette manually.
It's functionally very close to https://colorbrewer2.org, which has been online for more than 15 years. I think it's not a coincidence, and some credits wouldn't have hurt anyone...

Also, I have personally been using iWantHue to generate large palettes for more than 10 years now, and I'm still very happy about it: https://medialab.github.io/iwanthue/

Definitely not colorblind-friendly (color contrast too low)
I need output: * gnuplot pallete * css for web page
This will come in very handy for me. Thanks for working on this and putting out there.
Does using a range of hues generate colors that can be differentiated by those of us who are color blind?
Careful, this is really not good for folks who are color blind. In chromium devtools you can enable various color blind emulations in the device emulation menu. ctrl+shift+P -> "Protanopia"
Hah, what a coincidence. I did small research today for heatmaps for my very simply graph lib for Ruby. I recommend this blog post:

https://research.google/blog/turbo-an-improved-rainbow-color...

I myself implemented 4 colorize functions for that. Common linear Blue -> Red. Linear Blue -> Red adjusted via Green for visibility. Blue -> Yellow -> Red also linear. And of course Turbo from that blog..

It is great but of course people are going to shit on it because what fun would it be without being negative.