xxxxxxxxxx
22
let spaceBetween = 40;
let circleX;
let circleY;
function setup() {
createCanvas(500, 500);
}
function draw() {
background(220);
for (let j = 1; j <= 10; j += 1) {
circleY = j * spaceBetween;
for (let i = 1; i <= 10; i += 1) {
circleX = i * spaceBetween;
circle(circleX, circleY, 20);
}
}
noLoop();
}