forked from Makuna/NeoPixelBus
support for template GetPixelColor method (#774)
This commit is contained in:
1 parent
1a715a56b8
commit
99b6db904b
7 files changed
+80
-5
No files matched your search
@@ -76,7 +76,7 @@ void PickRandom(float luminance)
|
||||
// we use HslColor object as it allows us to easily pick a color
|
||||
// with the same saturation and luminance
|
||||
uint16_t time = random(100, 400);
|
||||
animationState[pixel].StartingColor = strip.GetPixelColor(pixel);
|
||||
animationState[pixel].StartingColor = strip.GetPixelColor<RgbColor>(pixel);
|
||||
animationState[pixel].EndingColor = HslColor(random(360) / 360.0f, 1.0f, luminance);
|
||||
|
||||
animations.StartAnimation(pixel, time, BlendAnimUpdate);
|
||||
|
||||
Reference in new issue
Block a user