From 2ea06db745085292b72f746cd677ab40386cede1 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 14 Mar 2019 15:54:02 +0100 Subject: [PATCH] Increase the probablity of the text being readable. --- src/open.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/open.js b/src/open.js index 5b2e694..e40d95d 100644 --- a/src/open.js +++ b/src/open.js @@ -265,9 +265,9 @@ function animate() { if (animation.steps === 0) { animation.steps = Math.floor(Math.random() * 60) + 30; - animation.x[0] = 4 * Math.random() * Math.PI; - animation.y[0] = 4 * Math.random() * Math.PI; - animation.z[0] = 4 * Math.random() * Math.PI; + animation.x[0] = (4 * Math.random() - 2) * Math.PI; + animation.y[0] = (4 * Math.random() - 2) * Math.PI; + animation.z[0] = (4 * Math.random() - 2) * Math.PI; } animation.steps--;