From fdf357a3a1667a4e72a8db7f33d323f78a4fba7a Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Mon, 4 Jan 2021 12:58:47 +0100 Subject: [PATCH] Start random color changes in random places. --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c366a59..b5c8c70 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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)); } } } \ No newline at end of file