xxxxxxxxxx
18
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let color;
// if (mouseX>200) {
// color = "#ff0000";
// }
// else {
// color = "#0000ff";
// }
background((mouseX>200) ? "#ff0000" : "#0000ff");
}