Browse Source

Get smooth start and end on shape

main
Luke Murphy 5 years ago
parent
commit
6b64133298
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      voicegardens/static/voicegardens.js

2
voicegardens/static/voicegardens.js

@ -262,9 +262,11 @@ class GeneratedShape {
curveTightness(this.organicConstant); curveTightness(this.organicConstant);
beginShape(); beginShape();
curveVertex(this.xs[this.xs.length - 1], this.ys[this.ys.length - 1]);
for (let i = 0; i < this.edges; i++) { for (let i = 0; i < this.edges; i++) {
curveVertex(this.xs[i], this.ys[i]); curveVertex(this.xs[i], this.ys[i]);
} }
curveVertex(this.xs[0], this.ys[0]);
endShape(CLOSE); endShape(CLOSE);
} }

Loading…
Cancel
Save