xxxxxxxxxx
function setup() {
createCanvas(559, 397, SVG);
background(0);
noLoop();
}
function draw() {
translate(width / 2, height / 2);
for (i = 0; i < 1000; i+=10) {
let l = i / 635;
let l1 = i / 211;
let l2 = i / 155;
noFill();
stroke(255);
push();
rotate(l);
rect(0, 0, 300, 1);
pop();
push();
rotate(l1);
rect(0, 0, 150, 1);
pop();
push();
rotate(l2);
rect(0, 0, 75, 1);
pop();
}
}
function mousePressed() {
save("mySVG.svg");
}