Advertisement
Kendred

Kendred Thompson Art Project 2

Oct 25th, 2018
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. int x = 50;
  2. int y = 50;
  3. void setup() {
  4. size(600,400);
  5. fill(200);
  6.  
  7. }
  8.  
  9. void draw() {
  10. snowman(x,y);
  11. snowman(300,50);
  12. snowman(450,100);
  13. x = int(random(0,height));
  14. y = int(random(0,width));
  15. }
  16.  
  17. void snowman(int x, int y) {
  18. //Snowman Body
  19.  
  20. fill(255);
  21. ellipse(x+50,y+230,75,75);
  22. ellipse(x+50,y+190,65,65);
  23. ellipse(x+50,y+150,55,55);
  24.  
  25. //Snowman Top Hat
  26. noStroke();
  27. fill(0);
  28. rect(x+22.5,y+120,55,15);
  29. rect(x+35.5,y+85,30,35);
  30.  
  31. //Snowman Eyes
  32. noStroke();
  33. fill(0);
  34. ellipse(x+40,y+140,10,10);
  35. ellipse(x+60,y+140,10,10);
  36.  
  37. //Snowman Nose
  38. noStroke();
  39. fill(255,140,0);
  40. triangle(x+10,y+160,x+50,y+150,x+50,y+160);
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement