xxxxxxxxxx
var counter = 0;
function setup() {
createCanvas(740, 525);
}
function draw() {
background(50);
rectMode(CENTER);
translate(0, height / 2);
let num = 10;
for (let y = 0; y < num; y += 1) {
push();
translate( y * width / num, 0 );
rotate( radians(y*10) );
noFill();
stroke(255, 0, 100);
rect(0, 0, 150, 150);
pop();
}
}