xxxxxxxxxx
function setup() {
createCanvas(559, 397, SVG);
//background(0);
rectMode(CENTER);
clear();
}
function draw() {
translate(width/2, height/2);
let s = map(sin(millis()/100), -6, 6, -200, 200);
let c = map(cos(millis()/100), -6, 6, -200, 200);
noFill();
stroke(0, 40);
translate(s,c);
rotate(millis()/500);
line(0, 0, -100, 150);
}
function mousePressed(){
save("mySVG.svg");
}