xxxxxxxxxx
20
let gridW = 40;
function setup() {
createCanvas(windowWidth, windowHeight);
noStroke();
noLoop();
}
function draw() {
background(220, 20, 120);
for (let x = gridW / 2; x < width + gridW; x += gridW) {
for (let y = gridW / 2; y < height + gridW; y += gridW) {
let eDiam = random(0.2 * gridW, 0.8 * gridW);
ellipse(x, y, eDiam, eDiam);
}
}
}