adafruit/Adafruit_NeoPixel — pull request #37 by sprsquish (2014-12-16 04:45:08+00:00)
Title: add HSV -> Color converter

Add a static method to convert hue/saturation/brightness values to a 32-bit packed color value. This allows for extremely simple color cycling. Controlling brightness is also straightforward and can be applied to individual pixels rather than full strands.

The algorithm was adapted from here: http://www.cs.rit.edu/~ncs/color/t%5Fconvert.html