xxxxxxxxxx
17
let w;
let col=20;
function setup() {
createCanvas(400, 400);
w= width/col;
}
function draw() {
background(220);
for(let i=0; i<col; i++){
let x = i*w;
if(mouseX>x && mouseX<x+w&& i!=6){
fill("red")
} else{ fill("white")
}
rect(x,0,w,height);
}}