Minor update: HSV blend functions
Just pushed to github this evening: HSV versions of the “blend” functions. (We already had RGB versions.)
The blend functions let you compute a new color that’s partly based on an existing color, and partly based on an overlay color. A third parameter to the blend function lets you control the ‘alpha’, or ‘opacity’ of the overlay – how much of the overlay color to mix in. “0” means don’t use any of the overlay color, “255” means only use the overlay color, and everything else is somewhere in between.
CRGB rgbMix = blend( rgbColor1, rgbColor2, overlayOpacity);
CHSV hsvMix = blend( hsvColor1, hsvColor2, overlayOpacity);
The HSV blend functions take an additional argument to let you specify how you want to travel around the color wheel from one hue to the other; the default is “whichever direction is shortest” which is almost always what you want.
I’m working down the list of accumulated to-do’s. (I also fixed the small index problem with the Fire example code. woo.)