From e9e999e315c146c33eeff574d675a8d3e301ab3d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Thu, 3 Dec 2020 20:17:16 +0100 Subject: [PATCH] Fixed RGBW-Sinus animation --- src/Animation/RgbwSinusAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Animation/RgbwSinusAnimation.cpp b/src/Animation/RgbwSinusAnimation.cpp index aef2f12..897fe3f 100644 --- a/src/Animation/RgbwSinusAnimation.cpp +++ b/src/Animation/RgbwSinusAnimation.cpp @@ -32,7 +32,7 @@ void RgbwSinusAnimation::loop(uint64_t frame) for(std::size_t led = 0; led < nled; led++) { for(std::size_t strip = 0; strip < nstrip; strip++) { - uint32_t pixelphase = led * fasttrigon::LUT_SIZE / nstrip + strip * fasttrigon::LUT_SIZE / nstrip; + uint32_t pixelphase = led * fasttrigon::LUT_SIZE / nled + strip * fasttrigon::LUT_SIZE / nstrip; Fader::Color color{ static_cast(((127 + fasttrigon::fastsin(m_phi[0] / m_speedDivider + pixelphase)) * m_brightnessScale) >> 8),