From 6b64133298ff9e6b366d888153ad3314ec609d56 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 3 Feb 2020 09:03:47 +0100 Subject: [PATCH] Get smooth start and end on shape --- voicegardens/static/voicegardens.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 39d9c68..309fc96 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -262,9 +262,11 @@ class GeneratedShape { curveTightness(this.organicConstant); beginShape(); + curveVertex(this.xs[this.xs.length - 1], this.ys[this.ys.length - 1]); for (let i = 0; i < this.edges; i++) { curveVertex(this.xs[i], this.ys[i]); } + curveVertex(this.xs[0], this.ys[0]); endShape(CLOSE); }