xxxxxxxxxx
17
const NUM_CIRCLES = 10;
function setup() {
createCanvas(400, 400);
for (let cond = 0; cond < 3; cond += 1) {
print('hello from inside the for loop!');
}
}
function draw() {
background(220);
let circleSize = width/NUM_CIRCLES;
for(let i = 0; i <= NUM_CIRCLES; i += 1) {
let x = i*circleSize + circleSize/2;
circle(x, height/2, circleSize);
}
}