pitrix/src/effect_firework.cpp
Fabian Schlenz c5856a6f7a
Some checks failed
continuous-integration/drone/push Build is failing
Whitespace stuff. Tabs rule!
2019-06-07 06:24:16 +02:00

14 lines
331 B
C++

#include "effect_firework.h"
#include "my_fastled.h"
#include "functions.h"
#include "config.h"
void FireworkEffect::loop() {
blur(EFFECT_FIREWORK_BLUR);
fadeToBlackBy(leds, LED_COUNT, EFFECT_FIREWORK_FADEOUT_SPEED);
if (random8(EFFECT_FIREWORK_SHOT_CHANCE)==0) {
leds[random16(LED_COUNT)] = CHSV(random8(), 255, 255);
}
}