Start random color changes in random places.
This commit is contained in:
parent
43916c3b78
commit
fdf357a3a1
@ -84,12 +84,15 @@ void loop() {
|
|||||||
}
|
}
|
||||||
FastLED.show();
|
FastLED.show();
|
||||||
|
|
||||||
if (!looping) {
|
/*if (!looping) {
|
||||||
LOGln("corners.size(): %d", corners.size());
|
LOGln("corners.size(): %d", corners.size());
|
||||||
uint16_t cid = random16(corners.size());
|
uint16_t cid = random16(corners.size());
|
||||||
LOGln("cid: %d", cid);
|
LOGln("cid: %d", cid);
|
||||||
Corner* start = corners[cid];
|
Corner* start = corners[cid];
|
||||||
start->blend_to(CHSV(random8(), 255, 255));
|
start->blend_to(CHSV(random8(), 255, 255));
|
||||||
|
}*/
|
||||||
|
if (random8()==42) {
|
||||||
|
corners[random16(corners.size())]->blend_to(CHSV(random8(), 255, 255));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user