Back to default shapes
This commit is contained in:
parent
6b64133298
commit
39fba2aeb3
@ -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…
Reference in New Issue
Block a user