xxxxxxxxxx
17
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
for (let x = 0; x < width; x += 40) {
if (mouseX >= x && mouseX < x+40) {
fill('red');
}
else {
fill('white');
}
rect(x, 0, 40, height);
}
}