SingleDynamic and MultiDynamic now also use baseHue.
This commit is contained in:
parent
646d3369fb
commit
b6d59758d8
@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
int MultiDynamicEffect::getLoopTime() { return EFFECT_MULTI_DYNAMIC_LOOP_TIME; }
|
int MultiDynamicEffect::getLoopTime() { return EFFECT_MULTI_DYNAMIC_LOOP_TIME; }
|
||||||
void MultiDynamicEffect::update() {
|
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);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ int SingleDynamicEffect::getLoopTime() {
|
|||||||
return EFFECT_SINGLE_DYNAMIC_LOOP_TIME;
|
return EFFECT_SINGLE_DYNAMIC_LOOP_TIME;
|
||||||
}
|
}
|
||||||
void SingleDynamicEffect::update() {
|
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; }
|
boolean SingleDynamicEffect::can_be_shown_with_clock() { return true; }
|
||||||
void SingleDynamicEffect::loop() {
|
void SingleDynamicEffect::loop() {
|
||||||
|
Loading…
Reference in New Issue
Block a user