From f7193eabee76187940fa86ac58c65faef31b8da2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 22 Sep 2023 16:55:32 +0100 Subject: randomise --- futuregael/src/show.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'futuregael') diff --git a/futuregael/src/show.h b/futuregael/src/show.h index 43e4bad..96804aa 100644 --- a/futuregael/src/show.h +++ b/futuregael/src/show.h @@ -271,6 +271,15 @@ public: ofLog()<<"Show finished!"; } } + + for (int i=0;iwords.size();i++){ + for (auto& g:playline->words[i].glyphs){ + if (ofRandom(100)<1.0) { //speed + g.colour=playline->palette[ofRandom(playline->palette.size())]; + } + } + } + } } -- cgit v1.2.3