xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
}
const base = (num) => {
const n = width/num;
for(let i = 0; i < n; i++){
for(let j = 0; j < n; j++){
if(random(1)<0.5){
fill(0);
}else{
fill(255);
}
rect(i*n,j*n,n,n);
}
}
}