From ac1f758b8767eefe88694803b9114a5e40af01b1 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 2 Oct 2019 06:18:43 +0200 Subject: [PATCH] Fixes in blur2d effect. --- src/effect_blur2d.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/effect_blur2d.cpp b/src/effect_blur2d.cpp index 27740e8..8f2b46d 100644 --- a/src/effect_blur2d.cpp +++ b/src/effect_blur2d.cpp @@ -17,10 +17,10 @@ void Blur2DEffect::loop(uint16_t ms) { uint8_t x3 = beatsin8(11, 0, window->width-1); uint8_t y3 = beatsin8(13, 0, window->height-1); - uint16_t ms = millis(); - CRGB c1 = CHSV(ms / 29, 200, 255); - CRGB c2 = CHSV(ms / 41, 200, 255); - CRGB c3 = CHSV(ms / 73, 200, 255); + uint16_t time = millis(); + CRGB c1 = CHSV(time / 29, 200, 255); + CRGB c2 = CHSV(time / 41, 200, 255); + CRGB c3 = CHSV(time / 73, 200, 255); window->addPixelColor(x1, y1, &c1); window->addPixelColor(x2, y2, &c2); window->addPixelColor(x3, y3, &c3);