Fixes in blur2d effect.

This commit is contained in:
Fabian Schlenz 2019-10-02 06:18:43 +02:00
parent 85aee53462
commit ac1f758b87

View File

@ -17,10 +17,10 @@ void Blur2DEffect::loop(uint16_t ms) {
uint8_t x3 = beatsin8(11, 0, window->width-1); uint8_t x3 = beatsin8(11, 0, window->width-1);
uint8_t y3 = beatsin8(13, 0, window->height-1); uint8_t y3 = beatsin8(13, 0, window->height-1);
uint16_t ms = millis(); uint16_t time = millis();
CRGB c1 = CHSV(ms / 29, 200, 255); CRGB c1 = CHSV(time / 29, 200, 255);
CRGB c2 = CHSV(ms / 41, 200, 255); CRGB c2 = CHSV(time / 41, 200, 255);
CRGB c3 = CHSV(ms / 73, 200, 255); CRGB c3 = CHSV(time / 73, 200, 255);
window->addPixelColor(x1, y1, &c1); window->addPixelColor(x1, y1, &c1);
window->addPixelColor(x2, y2, &c2); window->addPixelColor(x2, y2, &c2);
window->addPixelColor(x3, y3, &c3); window->addPixelColor(x3, y3, &c3);