xxxxxxxxxx
var counter = 0;
function setup()
{
createCanvas(windowWidth/2, windowHeight/2);
background(255,100,100);
}
function draw()
{
translate(width/2, height/2);
translate(0, cos(counter)*300);
noFill();
stroke(255);
strokeWeight(0.5);
rotate(sin(counter));
line(0,0,300,80);
line(30,60,-20,0);
line(0,80,0,80)
line(300,80,10,0)
counter += 0.9;
}