2019-05-30 09:12:40 +00:00
|
|
|
#include "effect_confetti.h"
|
|
|
|
#include "config.h"
|
|
|
|
#include "functions.h"
|
2019-05-30 11:08:24 +00:00
|
|
|
#include "prototypes.h"
|
2019-05-30 09:12:40 +00:00
|
|
|
|
|
|
|
void ConfettiEffect::loop() {
|
|
|
|
fadeToBlackBy(leds, LED_COUNT, 1);
|
2019-05-30 11:08:24 +00:00
|
|
|
for (int i=0; i<EFFECT_CONFETTI_PIXELS_PER_LOOP; i++) {
|
|
|
|
addPixelColor(random16(LED_COUNT), CHSV(baseHue + random8(64), 200, 255));
|
|
|
|
}
|
2019-05-30 09:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
boolean ConfettiEffect::can_be_shown_with_clock() { return true; };
|