xxxxxxxxxx
26
let backgroundChange = false;
function setup() {
createCanvas(400, 400);
}
function mousePressed() {
backgroundChange = true;
}
function draw() {
if (backgroundChange === true) {
background(255, 0, 100);
} else {
background(0);
}
}