SHARE
TWEET

Untitled

drusssy Sep 23rd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup () {
  2.   size (1200, 600);
  3.  
  4.     fill(255);
  5.   stroke(32);
  6.  
  7.  
  8.  
  9.   //body
  10.   rect(width/7.5, height/3, width/8, height/3);
  11.  
  12.   //arms
  13.   rect(width/11, height/3, width/20, height/4);
  14.   rect(width/4, height/3, width/20, height/4);
  15.  
  16.   rect(width/11, height/1.8, width/20, height/4);
  17.   rect(width/4, height/1.8, width/20, height/4);
  18.  
  19.   //legs
  20.   rect(width/7, height/1.5, width/25, height/4);
  21.  
  22.   rect(width/4.8, height/1.5, width/25, height/4);
  23.  
  24.   //head
  25.   ellipse(width/5, height/3.5, width/8, height/6);
  26.  
  27.    pushMatrix();
  28.     //translate(width/7, height/4);
  29.     //rotate(PI/4);
  30.    
  31.     fill(0);
  32.     rect(width/7, height/4, width/15, height/35);
  33.     popMatrix();
  34.    
  35.     pushMatrix();
  36.     //translate(15, 18);
  37.     rotate(radians(-45));
  38.    
  39.     fill(0);
  40.     rect(20, 12, 20, 5);
  41.     popMatrix();
  42.   //horns
  43.  
  44.   beginShape();
  45.   vertex(width/6.3, height/4.5);
  46.   vertex(width/7, height/5.7);
  47.   vertex(width/6.3, height/10);
  48.   vertex(width/5.8, height/5.7);
  49.   vertex(width/5.3, height/4.8);
  50.   endShape();
  51.  
  52.   beginShape();
  53.   vertex(width/4.15, height/4.5);
  54.   vertex(width/3.9, height/5.7);
  55.   vertex(width/4.2, height/10);
  56.   vertex(width/4.4, height/5.7);
  57.   vertex(width/4.7, height/4.8);
  58.  
  59.   endShape();
  60.  
  61.   //eyes
  62.  
  63.    //if (heroState == 1) {
  64.     //fill(255, 0, 0);
  65.  // } else {
  66.     fill(35);
  67.  // }
  68.   ellipse(width/6, height/3.5, width/20, height/15);
  69.   ellipse(width/4, height/3.5, width/20, height/15);
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top