{Multi,Single}Dynamic will now start with a correctly colored board of tiles.

This commit is contained in:
Fabian Schlenz 2019-05-31 05:47:11 +02:00
parent a7d956209a
commit 3294a35028

View File

@ -2,7 +2,7 @@
#include "functions.h"
SingleDynamicEffect::SingleDynamicEffect() {
for (int i=0; i<tile_count; i++) tiles[i] = CHSV(random8(), 180, 255);
for (int i=0; i<tile_count; i++) tiles[i] = CHSV(baseHue + random8(64), 180, 255);
}
int SingleDynamicEffect::getLoopTime() {
return EFFECT_SINGLE_DYNAMIC_LOOP_TIME;