Allow to create shape at random within window
This commit is contained in:
parent
999016e33a
commit
8b2b5fad25
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user