xxxxxxxxxx
16
function setup() {
createCanvas(400, 400);
// angleMode(DEGREES);
}
function draw() {
background(220);
for (let i = 0; i < 8; i++) {
push();
const rotation = map(i, 0, 7, 0, PI/2);
translate(0, (height/7)*i)
rotate(-rotation);
line(0, 0, 0, height);
pop();
}
}