xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
stroke(0);
strokeWeight(2);
fill(255,0,0);
circle(width/2,height/2,50);
if (mouseX > 200) {
stroke(0);
strokeWeight (2);
fill(255,0,0);
circle(width/2,height/2,50);
}
else if (mouseX < 200) {
stroke(0);
strokeWeight(2);
fill(255,0,0);
rect(width/4,height/4,height/3,height/3);
}
}