pitrix/src/effect_firework.cpp

12 lines
266 B
C++
Raw Normal View History

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