xxxxxxxxxx
22
function setup() {
createCanvas(400, 400);
}
function draw() {
background(0);
// //if(mouseIsPressed){
// //only run when true
// background(255);
// } if(keyIsPressed) {
// //background("red")
// //runs if condition is not met
// //}
// //
print(mouseX)
if(mouseX < 200){
ellipse(width/2, height/2, 200, 200);
} else {
rect (width/2, height/2, 200, 200)
}