xxxxxxxxxx
16
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
}
function draw(){
background(240);
translate(width/2, height/2);
for (let i = 0; i < 8; i++) {
push();
rotate(TWO_PI * i / 8);
rect(120, 0, 20, 20);
pop();
}
}