In [1]:
float angle = 0;

void setup() {
    size(500, 500);
}

void draw() {
    drawPerson(300, 300, angle);
    drawPerson(50, 50, angle);
    angle += PI/180;
}

void drawPerson(float x, float y, float angle) {
    pushMatrix();
    translate(x, y);
    rotate(angle);

    beginShape();
    vertex(10 - 50, 10 - 50);
    vertex(80 - 50, 10 - 50);
    vertex(50 - 50, 80 - 50);
    vertex(30 - 50, 60 - 50);
    vertex(5 - 50, 20 - 50);
    vertex(10 - 50,10 - 50);
    endShape();
    popMatrix();
}
Sketch #1:

Sketch #1 state: Loading...
In [21]:
float angle = 0;

void setup() {
    size(500, 500);
    println("CLEARED--------------------------------");
    fill(0);
    ellipse(width/2, height/2, 5, 5);
    fill(255);
}

void draw() {
}

void mouseReleased() {
    println("vertex(" + mouseX + ", " + mouseY + ");");
    ellipse(mouseX, mouseY, 5, 5);
}
Sketch #17:

Sketch #17 state: Loading...
In [3]:
float angle = 0;

void setup() {
    size(500, 500);
}

void draw() {
    drawPerson(300, 300, angle);
    drawPerson(50, 50, angle);
    angle += PI/180;
}

void drawPerson(float x, float y, float angle) {
    pushMatrix();
    translate(x, y);
    fill(255);
    beginShape();
    vertex(209 - 250, 218 - 250);
    vertex(232 - 250, 225 - 250);
    vertex(255 - 250, 225 - 250);
    vertex(275 - 250, 211 - 250);
    vertex(303 - 250, 233 - 250);
    vertex(287 - 250, 260 - 250);
    vertex(269 - 250, 249 - 250);
    vertex(271 - 250, 303 - 250);
    vertex(224 - 250, 303 - 250);
    vertex(222 - 250, 253 - 250);
    vertex(194 - 250, 269 - 250);
    vertex(177 - 250, 245 - 250);
    vertex(209 - 250, 218 - 250);
    endShape();
    fill(0);
    beginShape();
    vertex(228 - 250, 267 - 250);
    vertex(268 - 250, 270 - 250);
    vertex(269 - 250, 318 - 250);
    vertex(248 - 250, 319 - 250);
    vertex(244 - 250, 283 - 250);
    vertex(232 - 250, 323 - 250);
    vertex(211 - 250, 321 - 250);
    vertex(227 - 250, 267 - 250);
    endShape();
    popMatrix();
}
Sketch #3:

Sketch #3 state: Loading...