SHARE
TWEET

Untitled

a guest Sep 15th, 2019 816 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   size (197,197);
  3.   background (147, 147, 142);
  4.   noStroke();
  5.   println(height);
  6.   println(width);
  7.  }
  8. void draw() {
  9.  
  10.  
  11.   //rectangle code
  12.   rectMode(CENTER);
  13.  
  14.   fill(82,230,255);
  15.   rect(height/2,width/2,16*10,9*10);
  16.  
  17.   fill(255,82,103);
  18.   rect(height/2,width/2,16*8,9*8);
  19.  
  20.  //triangle code
  21.   fill (196,255,233);;  //triangle(width*.50,72/2,128/2,82/3,128/
  22.   translate(-5,12);
  23.   triangle(75,100,130,100,100,60);
  24.  
  25.   //ellipse code
  26.   translate (3,-12);
  27.   fill (252,0,0);
  28.   ellipse(height/2,width/2, 18,20);
  29.  
  30.  
  31. }
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