xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background("blue");
}
var counter = 0
function draw() {
ellipse(mouseX + 100, mouseY - 200 / 2, 10);
}
function mouseClicked() {
if(counter == 5) fill(random(0,255))
var am = 0
while(am < 100 ) {
fill("magenta")
square(random(1000),random(1000),20)
am = am + 1
counter = counter + 1
}
}