50 Shades of Hue

I was just reading a post called A Quick ‘n Dirty Color Sequence from an Apple developer named Peter Ammon over at blog called ridiculousfish.com.  It was an interesting way to get distinguishable color sequences for things like bar graphs.  He explains bisecting the regions of the color wheel to determine distinct distant colors.  This doesn’t take into other considerations like colorblindness, print-friendly, and photo-copy-able.  For those color selections, you’re best bet is to check out  Color Brewers for maps.

The code was designed to calculate Nth hues on a color circle (saturation and light disregarded).  I thought it would be interesting to see how to use this for anything besides the example he had on this page. So, I took his code and just adjusted it.
Continue reading