xxxxxxxxxx
18
let eDiam = 40;
function setup() {
createCanvas(windowWidth, windowHeight);
noLoop();
}
function draw() {
background(220, 20, 120);
for (let x = eDiam / 2; x < width + eDiam; x += eDiam) {
for (let y = eDiam / 2; y < height + eDiam; y += eDiam) {
fill(random(0, 255));
ellipse(x, y, eDiam, eDiam);
}
}
}