Hue Blend Direction support

This commit is contained in:
Makuna committed 2016-03-28 12:21:11 -07:00
1 parent 2c07835340
commit d351014ac8
9 files changed
+143 -19

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ void DrawPixels(bool corrected, HslColor startColor, HslColor stopColor)
for (uint16_t index = 0; index < strip.PixelCount() - 1; index++)
{
float progress = index / static_cast<float>(strip.PixelCount() - 2);
RgbColor color = HslColor::LinearBlend(startColor, stopColor, progress);
RgbColor color = HslColor::LinearBlend<NeoHueBlendShortestDistance>(startColor, stopColor, progress);
if (corrected)
{
color = colorGamma.Correct(color);