xxxxxxxxxx
19
let w;
let numCols=10;
function setup() {
createCanvas(400, 400);
w=width/numCols;
}
function draw() {
background(220);
for(let i=0; i<numCols; i++){
let x=i*w;
if(i%2==0) fill('blue');
else
fill('white')
rect(x,0,w,height);
}
}