Advertisement
smay

Untitled

Jan 29th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.80 KB | None | 0 0
  1. uses
  2.   graphABC;
  3.  
  4. var
  5.   x, x1: Real;
  6.   y, y1: Integer;
  7.  
  8. begin
  9.   LockDrawing;
  10.   y := 330;
  11.   y1 := 380;
  12.   while y > 160 do
  13.   begin
  14.     setpencolor(clBlack);
  15.     setbrushcolor(clwhite);
  16.     ellipse(220, 100, 390, 160);
  17.     line(220, 135, 250, 350);
  18.     line(390, 135, 360, 350);
  19.     x := (y + 1400) / (7);
  20.     x1 := -(y1 - 2870) / (7);
  21.     setbrushcolor(ClLightBlue);
  22.     ellipse(250, 330, 360, 380);
  23.     setpencolor(ClLightBlue);
  24.     ellipse(Round(x) + 4, y, Round(x1) + 4, y1);
  25.     y := y - 1;
  26.     y1 := y1 - 1;
  27.     setpencolor(clblack);
  28.     setbrushcolor(clwhite);
  29.     ellipse(220, 100, 390, 160);
  30.     If y=160 then
  31.     begin
  32.     setpencolor(clBlack);
  33.     setbrushcolor(clLightBlue);
  34.     ellipse(Round(x) + 4, y, Round(x1) + 4, y1);
  35.     end;
  36.     sleep(10);
  37.     Redraw;
  38.   end
  39. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement