xxxxxxxxxx
35
let bubbles = [];
let size;
let x;
let y;
function setup() {
createCanvas(400, 400);
size = random(5, 40);
x = random(width);
y = random(height);
}
//function mousePressed() {
//size = random(5,40);
//x = random(width);
//y = random(height);
//let b = new Bubble(mouseX, mouseY, size)
//add something to the array, push it to the end of the array
//bubbles.push(b);
//}
function draw() {
background(0);
for (let i = 0; i < bubbles.length; i++) {
new Bubble(x, y, size);
}
/*bubble3.color();
bubble3.move();
bubble3.size();
bubble3.display();
*/
}