Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup () {
- size (1200, 600);
- fill(255);
- stroke(32);
- //body
- rect(width/7.5, height/3, width/8, height/3);
- //arms
- rect(width/11, height/3, width/20, height/4);
- rect(width/4, height/3, width/20, height/4);
- rect(width/11, height/1.8, width/20, height/4);
- rect(width/4, height/1.8, width/20, height/4);
- //legs
- rect(width/7, height/1.5, width/25, height/4);
- rect(width/4.8, height/1.5, width/25, height/4);
- //head
- ellipse(width/5, height/3.5, width/8, height/6);
- pushMatrix();
- //translate(width/7, height/4);
- //rotate(PI/4);
- fill(0);
- rect(width/7, height/4, width/15, height/35);
- popMatrix();
- pushMatrix();
- //translate(15, 18);
- rotate(radians(-45));
- fill(0);
- rect(20, 12, 20, 5);
- popMatrix();
- //horns
- beginShape();
- vertex(width/6.3, height/4.5);
- vertex(width/7, height/5.7);
- vertex(width/6.3, height/10);
- vertex(width/5.8, height/5.7);
- vertex(width/5.3, height/4.8);
- endShape();
- beginShape();
- vertex(width/4.15, height/4.5);
- vertex(width/3.9, height/5.7);
- vertex(width/4.2, height/10);
- vertex(width/4.4, height/5.7);
- vertex(width/4.7, height/4.8);
- endShape();
- //eyes
- //if (heroState == 1) {
- //fill(255, 0, 0);
- // } else {
- fill(35);
- // }
- ellipse(width/6, height/3.5, width/20, height/15);
- ellipse(width/4, height/3.5, width/20, height/15);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement