xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
background (0,0,0,5);
translate (width/2, height/2);
let a = map(sin(millis()/1000), -1, 1, -400, 400);
stroke (255);
translate (a, 0);
//line (20,0,90,900);
let b = map (sin(millis()/10000),-1,1,400,-400);
translate (b,0);
line (0,20,-90,-900);
let c=map(cos(rotate(1/PI)),-1,1,400,-400);
translate (c,0);
line(90,-90,0,0);
/*push();
stroke (255);
translate (width/2,height/2);
rect (0,0,190,190, 50);
pop();
*/
}