SingleDynamic and MultiDynamic now also use baseHue.

This commit is contained in:
Fabian Schlenz 2019-05-30 13:09:00 +02:00
parent 646d3369fb
commit b6d59758d8
2 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,5 @@
int MultiDynamicEffect::getLoopTime() { return EFFECT_MULTI_DYNAMIC_LOOP_TIME; }
void MultiDynamicEffect::update() {
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);
}

View File

@ -8,7 +8,7 @@ int SingleDynamicEffect::getLoopTime() {
return EFFECT_SINGLE_DYNAMIC_LOOP_TIME;
}
void SingleDynamicEffect::update() {
tiles[random8(tile_count)] = CHSV(random8(), 180, 255);
tiles[random8(tile_count)] = CHSV(baseHue + random8(64), 180, 255);
}
boolean SingleDynamicEffect::can_be_shown_with_clock() { return true; }
void SingleDynamicEffect::loop() {