xxxxxxxxxx
//variable for red, green and blue set to 0
let r, g, b = 0;
function setup(){
createCanvas(400,200);
}
function draw(){
background(r,g,b);
text("Press canvas to change background color", 100, 100);
}
function mousePressed(){
// Change the background color to a random color when any key is pressed
r = random(255);
g = random(255);
b = random(255);
}