xxxxxxxxxx
let rows = 16;
let cols = 16;
function setup() {
createCanvas(800, 800);
background(100);
noStroke();
}
function draw() {
for (let i = 0; i < cols; i++) {
for (let j = 0; j < rows; j++) {
fill(j*32, 0, i*32);
square(i*50, j*50, 10);
}
}
}