xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
rectMode(CENTER);
}
function draw() {
background(0, 10);
translate(width/2,height/2);
let s= map(sin(millis()/1000), -1, 1, -300, 300);
noFill();
stroke(255);
translate(s, 0);
rotate(millis()/1000)
scale(0.2, 1.5);
circle(0, 0, 200);
}