From 13dffba40e469e91d1be299879b04b491db51caa Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 31 Jan 2020 18:04:11 +0100 Subject: [PATCH] Get rad with ORGANIC CONSTANT --- voicegardens/static/voicegardens.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 9d31732..ed500a5 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -258,6 +258,9 @@ class GeneratedShape { /*function for drawing the shape on the screen*/ createShape() { + let organicConstant = floor(random(-5, 5)); + curveTightness(organicConstant); + beginShape(); var lastItem = this.points.length - 1; @@ -309,7 +312,6 @@ function draw() { for (var shape of shapes) { shape.move(); shape.display(); - if (shape.collide(shapes) === true) { shape.sound(); }