xxxxxxxxxx
var a = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(225);
noStroke();
translate(mouseX, mouseY);
// Head
fill('Gold');
ellipse(0, 0, 100, 100);
// Body
fill('Orange');
translate(-20, 40);
rect(0,0,50,150);
// Left Arm
fill('Gold');
translate(-60,25);
rect(0,0,60,20);
// Right Arm
fill('Gold');
translate(110,0);
rect(0,0,60,20);
// Left Leg
fill('Gold');
translate(-50,125);
rect(0,0,20,75);
// Right Leg
fill('Gold');
translate(30,0);
rect(0,0,20,75);
rotate(radians(a));
a=a+1;
stroke('black');
line(200,200,275,300);
}