Allow to create shape at random within window

This commit is contained in:
Luke Murphy 2020-02-01 13:42:57 +01:00
parent 999016e33a
commit 8b2b5fad25
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -174,8 +174,8 @@ class GeneratedShape {
this.destX = random(canvasWidth);
this.destY = random(canvasHeight);
this.centerX = centerX;
this.centerY = centerY;
this.centerX = random(windowWidth);
this.centerY = random(windowHeight);
this.initialise();
}