xxxxxxxxxx
37
function setup() {
createCanvas(400, 400);
}
function mouseClicked () {
background(220);
noStroke()
if (mouseX > width*2/3 && mouseX < width){
//background(220);
fill(255, 0, 0)
rect(width*2/3, 0, width/3, height);
}
if (mouseX > width/3 && mouseX < width*2/3){
// background(220);
fill(255, 0, 0)
rect(width/3, 0, width/3, height);
}
if (mouseX > 1 && mouseX < width/3) {
// background(220);
fill(255, 0, 0)
rect(0, 0, width/3, height);
//}
}
}