xxxxxxxxxx
21
let circles = [];
function setup(){
createCanvas(windowWidth,windowHeight);
for(let i = 0; i < 10; i++){
// make some random x, y points and put them in an array
let x = random(width);
let y = random(height);
// each iteration store x and y in an array within circles
circles.push([x,y])
}
}
function draw() {
background(0)
for(let i = 0; i < circles.length; i++){
circle(circles[i][0], circles[i][1], 30)
}
}