xxxxxxxxxx
var counter = 0;
function setup()
{
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw()
{
//background(0);
translate(width/2, height/2);
translate(0, sin(counter)*200);
noFill();
stroke(255,150,20,20,10);
rect(10, 100, 10, 100);
//rotate(0.2);
rotate(sin(counter)*100);
//line(0, 0, 300, 0);
counter += 0.1;
}