From 39fba2aeb3239ac980ed5bf18317a42887be4c30 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 3 Feb 2020 09:29:13 +0100 Subject: [PATCH] Back to default shapes --- voicegardens/static/voicegardens.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 309fc96..84318fd 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -250,13 +250,9 @@ class GeneratedShape { for (let i = 0; i < this.edges; i++) { this.startXs[i] = - this.centerX + - cos(radians(this.rotAngle) * i) * this.radius + - this.randomX; + this.centerX + cos(radians(this.rotAngle)) * this.radius + this.randomX; this.startYs[i] = - this.centerY + - sin(radians(this.rotAngle) * i) * this.radius + - this.randomY; + this.centerY + sin(radians(this.rotAngle)) * this.radius + this.randomY; this.rotAngle += 360 / this.edges; }