Store curveTightness on the shape
This commit is contained in:
parent
13dffba40e
commit
511ff89477
@ -152,6 +152,8 @@ class GeneratedShape {
|
|||||||
|
|
||||||
this.opacity = 0;
|
this.opacity = 0;
|
||||||
this.colour = this.chooseColour();
|
this.colour = this.chooseColour();
|
||||||
|
|
||||||
|
this.curveTightness = -5;
|
||||||
}
|
}
|
||||||
|
|
||||||
collide(shapes) {
|
collide(shapes) {
|
||||||
@ -258,8 +260,7 @@ class GeneratedShape {
|
|||||||
|
|
||||||
/*function for drawing the shape on the screen*/
|
/*function for drawing the shape on the screen*/
|
||||||
createShape() {
|
createShape() {
|
||||||
let organicConstant = floor(random(-5, 5));
|
curveTightness(this.curveTightness);
|
||||||
curveTightness(organicConstant);
|
|
||||||
|
|
||||||
beginShape();
|
beginShape();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user