Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. void setup () {
  2. size(600, 800);
  3. }
  4.  
  5. void draw() {
  6. background(0, 0, 153);
  7.  
  8. //first petal
  9. fill(255, 255, 255);
  10. pushMatrix();
  11. translate(360-90-30, 300-95-95-0);
  12. for (int i=0; i <9; i++) {
  13. translate(130, 0);
  14. ellipse(0, 10, 100, 200);
  15. rotate (TWO_PI/9);
  16. }
  17. popMatrix();
  18.  
  19. //face
  20. fill(255, 219, 77);
  21. ellipse(300, 300, 300, 300);
  22. noStroke();
  23.  
  24. //eyes
  25. fill(38, 38, 38);
  26. ellipse(255, 265, 30, 55);
  27. ellipse(345, 265, 30, 55);
  28.  
  29. //mouth
  30. arc(300, 340, 65, 90, 0, 90);
  31. }
  32.  
  33. //draw green stem
  34. stroke(0, 128, 0);
  35. line(100, 100, 100, 300);
  36.  
  37. //leafs
  38. ellipse(105, 200, 10, 10);
  39. ellipse(95, 225, 10, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement