Browse Source

Back to default shapes

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

8
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;
}

Loading…
Cancel
Save