summaryrefslogtreecommitdiff
path: root/lasertext/src
diff options
context:
space:
mode:
authorTim Redfern <redfernt@gmail.com>2023-08-18 16:03:59 +0100
committerTim Redfern <redfernt@gmail.com>2023-08-18 16:03:59 +0100
commitb3bfd6f78801f37162b989f89f3547b0b0ac1de1 (patch)
tree4acee7b14f7f6e6dd021de781199cdd9be8a6506 /lasertext/src
parent03eacae3ff028f7e565b3aebf28af48a0b08c585 (diff)
randomise works better this way
Diffstat (limited to 'lasertext/src')
-rw-r--r--lasertext/src/ofApp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lasertext/src/ofApp.h b/lasertext/src/ofApp.h
index 38038e3..a1f00a8 100644
--- a/lasertext/src/ofApp.h
+++ b/lasertext/src/ofApp.h
@@ -104,7 +104,7 @@ public:
if (bRandomise&&(ofRandom(1.0f)<mixprob)){
stars.clear();
- this_rate=ofRandom(rate);
+ this_rate=ofRandom(1.0f-rate)+rate;
}
for(auto it = stars.begin(); it != stars.end();)