xxxxxxxxxx
22
let allBobs = [];
function setup() {
createCanvas(600, 400);
angleMode(DEGREES)
}
function draw() {
background(25);
for(let i = 0; i < allBobs.length; i++){
allBobs[i].show();
allBobs[i].move();
allBobs[i].mutate();
}
}
function mousePressed(){
let bobby = new Bob(random(5,15),random(255), random(100), random(50));
allBobs.push(bobby);
}