From e0bc4d4ff943d0a7b95a70875cb7a019214eb552 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 3 Feb 2020 11:06:27 +0100 Subject: [PATCH] Remove random values that have no effect --- voicegardens/static/voicegardens.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 0c33c4a..139064b 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -168,9 +168,6 @@ class GeneratedShape { this.radius = random(120, 140); this.rotAngle = radians(360 / this.edges); - this.randomX = random(-77, 77); - this.randomY = random(-77, 77); - this.destX = random(canvasWidth); this.destY = random(canvasHeight); @@ -250,9 +247,9 @@ class GeneratedShape { for (let i = 0; i < this.edges; i++) { this.startXs[i] = - this.centerX + cos(radians(this.rotAngle)) * this.radius + this.randomX; + this.centerX + cos(radians(this.rotAngle)) * this.radius; this.startYs[i] = - this.centerY + sin(radians(this.rotAngle)) * this.radius + this.randomY; + this.centerY + sin(radians(this.rotAngle)) * this.radius; this.rotAngle += 360 / this.edges; }