Get rad with ORGANIC CONSTANT
This commit is contained in:
parent
85dbd54cab
commit
13dffba40e
@ -258,6 +258,9 @@ 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(organicConstant);
|
||||||
|
|
||||||
beginShape();
|
beginShape();
|
||||||
|
|
||||||
var lastItem = this.points.length - 1;
|
var lastItem = this.points.length - 1;
|
||||||
@ -309,7 +312,6 @@ function draw() {
|
|||||||
for (var shape of shapes) {
|
for (var shape of shapes) {
|
||||||
shape.move();
|
shape.move();
|
||||||
shape.display();
|
shape.display();
|
||||||
|
|
||||||
if (shape.collide(shapes) === true) {
|
if (shape.collide(shapes) === true) {
|
||||||
shape.sound();
|
shape.sound();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user