void setup() { size(600, 600); // Size should be the first statement stroke(255); // Set line drawing color to white fill(200); framerate(30); } float rightArmAng = -0.5; void draw() { if(mousePressed){rightArmAng-=.05;} rectMode(CENTER); background(0); // Set the background to black pushMatrix(); translate(300,300); // center of screen scale(2); pushMatrix(); //point(1,1); scale(1,2); rect(0, 0, 50, 50); point(1,1); popMatrix(); //head pushMatrix(); translate(0,-62.5); scale(0.5); //image(face, -60,-100); rect(0, 0, 50, 50); popMatrix(); //right arm.. rectMode(CORNER); pushMatrix(); translate(25,-50.0); //shoulder rotate(rightArmAng); pushMatrix(); scale(.25,.5); rect(0, 0, 50, 50); popMatrix(); translate(0,25); // elbow rotate(rightArmAng/2); scale(.25,.5); rect(0,0,50,50); popMatrix(); //Left arm.. pushMatrix(); translate(-25,-50.0); rotate(-rightArmAng); pushMatrix(); scale(.25,.5); rect(0, 0, -50, 50); popMatrix(); translate(0,25); rotate(rightArmAng); scale(.25,.5); rect(0,0,-50,50); popMatrix(); //Left leg... pushMatrix(); translate(-25,50.0); rotate(-rightArmAng); scale(.25,2); rect(0, 0, -50, 50); popMatrix(); //Right leg... pushMatrix(); translate(25,50.0); rotate(rightArmAng); scale(.25,2); rect(0, 0, 50, 50); popMatrix(); popMatrix(); }