xxxxxxxxxx
17
let xlocs = [ ];
function setup() {
createCanvas(400, 400);
rectMode(CENTER)
for(let i = 0; i < width; i = i + width/10){
xlocs.push(i);
print(xlocs);
}
}
function draw() {
background(220);
for(let i = 0; i <xlocs.length; i = i+1){
rect(xlocs[i],height/2,20,20)
}
}