Advertisement
Gromov

Untitled

Dec 18th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. program biatlons_n;
  2. Uses GRAPH,CRT;
  3. var
  4. d,m:smallint;
  5. c:char;
  6. a,b,e:integer;
  7. point:array [1..3] of real;
  8. Procedure tree;
  9. var
  10. z,e,d:integer;
  11. begin
  12. randomize;
  13. setFillStyle(1,16);
  14. setcolor(black) ;
  15.  
  16. rectangle(700,700,710,720); //legs
  17.  
  18. line(695,705,705,685); //body
  19. line(715,705,705,685);
  20. line(695,705,715,705);
  21.  
  22. line(695,695,705,675); //head
  23. line(715,695,705,675);
  24. line(695,695,715,695);
  25. end;
  26.  
  27.  
  28. procedure rep;
  29. var
  30. m:integer;
  31. begin
  32. SetFillStyle(1,16);
  33. setcolor(black);
  34.  
  35. for m:=1 to 125 do
  36. begin
  37. setcolor(white);
  38. circle(450+m,175,20);
  39. setcolor(black);
  40. delay(1);
  41. circle(450+m,175,20);
  42. end;
  43.  
  44. for m:=1 to 195 do
  45. begin
  46. setcolor(white);
  47. circle(575,175+m,20);
  48. setcolor(black);
  49. delay(1);
  50. circle(575,175+m,20);
  51. end;
  52.  
  53. for m:=1 to 250 do
  54. begin
  55. setcolor(white);
  56. circle(575-m,375,20);
  57. setcolor(black);
  58. delay(1);
  59. circle(575-m,375,20);
  60. end;
  61.  
  62. for m:=1 to 180 do
  63. begin
  64. setcolor(white);
  65. circle(325,370-m,20);
  66. setcolor(black);
  67. delay(1);
  68. circle(325,370-m,20);
  69. end;
  70.  
  71. for m:=1 to 125 do
  72. begin
  73. setcolor(white);
  74. circle(325+m,175,20);
  75. setcolor(black);
  76. delay(1);
  77. circle(325+m,175,20);
  78. end;
  79. circle(450,175,20);
  80. end;
  81.  
  82. begin
  83.  
  84. Initgraph(d,m,'');
  85. SetFillStyle(1,15);
  86.  
  87. line(200,200,300,200); //main
  88. line(300,200,300,400);
  89. line(300,400,600,400);
  90. line(600,400,600,200);
  91. line(600,200,800,200);
  92. line(800,200,800,600);
  93. line(800,600,200,600);
  94. line(200,600,200,200);
  95.  
  96. line(350,200,350,350); //cube
  97. line(350,350,550,350);
  98. line(550,350,550,200);
  99. line(550,200,350,200);
  100.  
  101. line(150,150,150,650); //external
  102. line(150,650,850,650);
  103. line(850,650,850,150);
  104. line(850,150,150,150);
  105.  
  106. line(350,150,350,125); //extra
  107. line(350,125,550,125);
  108. line(550,125,550,150);
  109.  
  110. circle(400,50,20); //target
  111. circle(450,50,20);
  112. circle(500,50,20);
  113. fillellipse(400,50,5,5);
  114. fillellipse(450,50,5,5);
  115. fillellipse(500,50,5,5);
  116.  
  117.  
  118.  
  119. line(300,750,400,750); //house
  120. line(400,750,400,850);
  121. line(400,850,300,850);
  122. line(300,850,300,750);
  123. line(300,750,350,700);
  124. line(350,700,400,750);
  125.  
  126. line(340,790,360,790); //window
  127. line(340,830,360,830);
  128. line(340,790,340,830);
  129. line(360,790,360,830);
  130. line(350,790,350,830);
  131.  
  132.  
  133. tree;
  134. SetFillStyle(1,16); //anime
  135. setcolor(black);
  136.  
  137. for b:=1 to 475 do
  138. begin
  139. setcolor(white);
  140. circle(650-b,625,20);
  141. setcolor(black);
  142. delay(1);
  143. circle(650-b, 625, 20);
  144. end;
  145.  
  146. for b:=1 to 450 do
  147. begin
  148. setcolor(white);
  149. circle(175,625-b,20);
  150. setcolor(black);
  151. delay(1);
  152. circle(175,625-b,20);
  153. end;
  154.  
  155. for b:=1 to 275 do
  156. begin
  157. setcolor(white);
  158. circle(175+b,175,20);
  159. setcolor(black);
  160. delay(1);
  161. circle(175+b,175,20);
  162. end;
  163. circle(450,175,20);
  164.  
  165. for a:=1 to 3 do
  166. Begin
  167. writeln('Ievadi kordinatus X un Y');
  168. readln(e);
  169. readln(b);
  170. setcolor(red);
  171. circle(e,b,10);
  172.  
  173. end;
  174.  
  175.  
  176.  
  177. for b:=1 to 375 do
  178. begin
  179. setcolor(white);
  180. circle(450+b,175,20);
  181. setcolor(black);
  182. delay(1);
  183. circle(450+b,175,20);
  184.  
  185. end;
  186.  
  187. for b:=1 to 460 do
  188. begin
  189. setcolor(white);
  190. circle(825,175+b,20);
  191. setcolor(black);
  192. delay(1);
  193. circle(825,175+b,20);
  194.  
  195. end;
  196.  
  197. for b:=1 to 200 do
  198. begin
  199. setcolor(white);
  200. circle(825-b,625,20);
  201. setcolor(black);
  202. delay(1);
  203. circle(825-b,625,20);
  204. end;
  205. readln;
  206. closegraph;
  207. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement