forked from Makuna/NeoPixelBus
Hue Blend Direction support
This commit is contained in:
1 parent
2c07835340
commit
d351014ac8
9 files changed
+143
-19
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user