Hacker News new | ask | show | jobs
by sberder 2289 days ago
I'm really not a specialist in color theory but have been looking for a library that could consistently return colors for multi charts with no defined number of lines. Most color palettes are a set size (5, 6, 8 colors) but I currently need to chart things with an unknown number of lines. Any suggestion from the mind hive?
1 comments

Rotate hues with an increment of phi (1.618...). It maximizes average distance between colors.

It is discussed at the end of the sinebow article:

https://basecase.org/env/on-rainbows

I love the Sinebow! It's a natural solution to a problem nobody ever talks about - the colors made by combining two primaries are unnaturally bright compared to a single primary. The way our monitors work, those colors emit twice as many photons. That's OK for yellow because we expect it to be bright, but magenta and cyan just look too garish.
That's a neat solution, the most irrational number strikes again!
Very much appreciated, I knew I'd get a perfect answer!