summaryrefslogtreecommitdiff
path: root/futuregael/src/show.h
diff options
context:
space:
mode:
authorTim Redfern <redfernt@gmail.com>2023-09-22 16:55:32 +0100
committerTim Redfern <redfernt@gmail.com>2023-09-22 16:55:32 +0100
commitf7193eabee76187940fa86ac58c65faef31b8da2 (patch)
tree8641b9042143f832884d5b6fdf7d0add0065e315 /futuregael/src/show.h
parent22c0d9bf8339d9c6e667bafd3b12baa867f8a29b (diff)
randomise
Diffstat (limited to 'futuregael/src/show.h')
-rw-r--r--futuregael/src/show.h9
1 files changed, 9 insertions, 0 deletions
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;i<playline->words.size();i++){
+ for (auto& g:playline->words[i].glyphs){
+ if (ofRandom(100)<1.0) { //speed
+ g.colour=playline->palette[ofRandom(playline->palette.size())];
+ }
+ }
+ }
+
}
}