function setup(){
createCanvas(200,200);
background(300);
noStroke();
}
function draw(){
for(let y=0;y<200;y+=20){
for(let x=0;x<200;x+=20){
fill(0);
rect(x,y,10,10);
}
}
for(let y=10;y<200;y+=20){
for(let x=10;x<200;x+=20){
fill(0);
rect(x,y,10,10);
}
}
}