document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. float x, y, z;
  2. float size = 75;
  3.  
  4. void setup()
  5. {
  6. size(1000,500);
  7. frameRate(30);
  8. }
  9.  
  10. void draw()
  11. {
  12. background(25,25,112);
  13. int d;
  14. d=second();
  15.  
  16. noStroke();
  17. //matahari
  18. fill(0+50*d,0,0);
  19. ellipse(75,70,100,100);
  20. //Jalan
  21. fill(150,75,50);
  22. rect(0,400,1000,100);
  23. //gunung
  24. fill(0,100,0);
  25. arc(350,450,800,550,(180*PI)/180,(0*PI)/180);
  26. arc(750,450,750,450,(180*PI)/180,(0*PI)/180);
  27. //efek salju
  28. fill(145);
  29. arc(340,225,440,100,(180*PI)/180,(0*PI)/180);
  30. arc(770,260,400,85,(180*PI)/180,(0*PI)/180);
  31. ellipse(200,245,200,100);
  32. ellipse(375,245,200,130);
  33. ellipse(500,250,200,100);
  34. ellipse(680,270,200,100);
  35. ellipse(800,270,150,110);
  36. ellipse(900,270,150,70);
  37. //Rumah
  38. fill(255,0,255);
  39. triangle(120,350,90,375,150,375);
  40. fill(20,100,200);
  41. rect(90,375,60,30);
  42. fill(0,100,0);
  43. arc(120,405,30,50,(180*PI)/180,(0*PI)/180);
  44.  
  45. //
  46. fill(0);
  47. triangle(80,375,50,400,110,400);
  48. fill(255);
  49. rect(50,400,60,30);
  50. fill(100);
  51. arc(80,430,30,50,(180*PI)/180,(0*PI)/180);
  52. //
  53. fill(200,100,0);
  54. triangle(160,375,130,400,190,400);
  55. fill(200,0,0);
  56. rect(130,400,60,30);
  57. fill(0,200,200);
  58. arc(160,430,30,50,(180*PI)/180,(0*PI)/180);
  59. //
  60. fill(100,100,100);
  61. triangle(200,325,170,350,230,350);
  62. fill(255,255,0);
  63. rect(170,350,60,30);
  64. fill(255,70,70);
  65. arc(200,380,30,50,(180*PI)/180,(0*PI)/180);
  66.  
  67. fill(100,100,100);
  68. triangle(200,325,170,350,230,350);
  69. fill(255,255,0);
  70. rect(170,350,60,30);
  71. fill(255,70,70);
  72. arc(200,380,30,50,(180*PI)/180,(0*PI)/180);
  73.  
  74. //rumput
  75. strokeWeight(3);
  76. fill(34,139,34);
  77. triangle(750,350,735,450,765,450);
  78. triangle(780,350,765,450,795,450);
  79. triangle(810,350,795,450,825,450);
  80. triangle(840,350,825,450,855,450);
  81. //salju
  82. fill(255);
  83. ellipse(50,5+10*d,10,10);
  84. ellipse(50+10*d,5+10*2*d,10,10);
  85. ellipse(50,5+10*3*d,10,10);
  86. ellipse(100,0+10*d,20,20);
  87. ellipse(100,0+10*d*3,20,20);
  88. ellipse(100+5*d,0+10*d*2,20,20);
  89. ellipse(200-10*d,0+10*3*d,20,20);
  90. ellipse(200,0+10*d,20,20);
  91. ellipse(275+10*d,5+10*d,15,15);
  92. ellipse(275,0+10*d,15,15);
  93. ellipse(300,0+10*d,20,20);
  94. ellipse(350+10*d,0+10*2*d,20,20);
  95. ellipse(350,0+10*d,20,20);
  96. ellipse(350-10*d,0+10*d*2,20,20);
  97. ellipse(450-5*d,0+10*d,17.5,17.5);
  98.  
  99. ellipse(50,30+10*d,10,10);
  100.  
  101. ellipse(500,5+10*d,10,10);
  102. ellipse(500-10*d,5+10*d*3,10,10);
  103. ellipse(500,5+10*d*2,10,10);
  104. ellipse(600+10*d,0+10*d,20,20);
  105. ellipse(650,0+10*3*d,20,20);
  106. ellipse(675,0+10*d,20,20);
  107. ellipse(750+10*d,5+10*4*d,15,15);
  108. ellipse(800,0+10*d,15,15);
  109. ellipse(850,0+10*d,20,20);
  110. ellipse(850+10*d,0+10*d*3,20,20);
  111. ellipse(850-10*d,0+10*d*2,20,20);
  112. ellipse(875,0+10*2*d*3,20,20);
  113. ellipse(875-5*d,0+10*2*d,20,20);
  114. ellipse(900-5*d,0+10*d,17.5,17.5);
  115. ellipse(900+5*d,0+10*d*1,20,20);
  116. ellipse(900,0+10*d*3,20,20);
  117.  
  118. //awan
  119. y = y + 0.8;
  120. translate(y-200, height/2-2*size/2);
  121. fill(95,158,160);
  122. ellipse(450,-50,70,45);
  123. ellipse(500,-50,85,65);
  124. ellipse(540,-50,70,35);
  125.  
  126. ellipse(700,-100,80,50);
  127. ellipse(750,-100,95,75);
  128. ellipse(780,-100,80,55);
  129. ellipse(815,-100,75,40);
  130.  
  131. ellipse(250,-100,80,35);
  132. ellipse(300,-100,80,45);
  133.  
  134. fill(106,90,205);
  135. rect(100,250,100,50);
  136. fill(72,61,139);
  137. rect(200,265,40,35);
  138. fill(255);
  139. rect(210,272,20,20);
  140. fill(65);
  141. ellipse(130,300,30,30);
  142. ellipse(200,300,30,30);
  143. //mobil
  144. x=x+0.5;
  145. translate(x, height/2-3*size/2);
  146. fill(255,20,147);
  147. rect(200,100,100,50);
  148. fill(255,105,180);
  149. rect(300,115,40,35);
  150. fill(255);
  151. rect(310,122,20,20);
  152. fill(65);
  153. ellipse(230,150,30,30);
  154. ellipse(300,150,30,30);
  155. translate(y,size);
  156. fill(0,255,0);
  157. rect(200,50,100,50);
  158. fill(124,202,0);
  159. rect(300,65,40,35);
  160. fill(255);
  161. rect(310,72,20,20);
  162. fill(65);
  163. ellipse(230,100,30,30);
  164. ellipse(300,100,30,30);
  165. }
');