void setup() { size(200,200); background(255); pushMatrix(); translate(50, 150); // move origin to (50,150) scale(3); // will create person of width 30 person(); popMatrix(); pushMatrix(); translate(100, 180); // move origin to (100,180) scale(2); // will create person of width 20 person(); popMatrix(); pushMatrix(); translate(150, 150); // move origin to (150,150) scale(3); // will create person of width 30 person(); popMatrix(); } /* Draw a person centered above the origin having width 10. */ void person() { line(-5, 0, 0, -10); // left leg line(5, 0, 0, -10); // right leg line(0, -10, 0, -20); // trunk line(0, -15, -5, -20); // left arm line(0, -15, 5, -20); // right arm ellipse(0, -25, 10, 10); // head }