xxxxxxxxxx
var counter = 0;
function setup()
{
createCanvas(windowWidth, windowHeight);
background(255,130,1);
}
function draw()
{
//background(0);
translate(width/2, height/2);
translate(0, cos(counter)*300);
noFill();
stroke(255);
//ellipse(0, 0, 150, 150);
//rotate(0.2);
rotate(sin(counter));
line(0, 0, 300, 0);
line(0, 0, -300, 0);
counter += 0.1;
}