Start random color changes in random places.

This commit is contained in:
Fabian Schlenz 2021-01-04 12:58:47 +01:00
parent 43916c3b78
commit fdf357a3a1
1 changed files with 4 additions and 1 deletions

View File

@ -84,12 +84,15 @@ void loop() {
}
FastLED.show();
if (!looping) {
/*if (!looping) {
LOGln("corners.size(): %d", corners.size());
uint16_t cid = random16(corners.size());
LOGln("cid: %d", cid);
Corner* start = corners[cid];
start->blend_to(CHSV(random8(), 255, 255));
}*/
if (random8()==42) {
corners[random16(corners.size())]->blend_to(CHSV(random8(), 255, 255));
}
}
}