home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 May / PCW596.iso / polskie / eduk / genfast / demo_01.pak / DEMO3.DA_ < prev    next >
INI File  |  1996-02-08  |  1KB  |  59 lines

  1. [1]
  2. @UpArea(80,80,330,370,7);
  3. @DrawButton(90,320,200,360,12,998,'Losowe','');
  4. @DrawButton(220,320,320,360,9,999,'Sinusoida','');
  5. @DisableStatusBar;
  6. @ShowScreen;
  7. [100]
  8. @CheckEvents;
  9.  
  10. [998]
  11. @SetColors(0,15);
  12. @DownArea(90,100,320,300,2);
  13. @A := 290;
  14. @B := 150;
  15. [2]
  16. @Random(110,290,%C);
  17. @SetColors(15,15);
  18. @Line(288,%B,296,%C);
  19. @GetPart(112,101,310,299);
  20. @PutPart(104,101);
  21. @SetColors(2,15);
  22. @Bar(289,101,296,299);
  23. @B := %C;
  24. @Delay(10);
  25. @GetMousePosition;
  26. @if (%y > 430) then goto:3;
  27. @goto:2;
  28. [3]
  29. @EnableStatusBar;
  30. @goto:100;
  31.  
  32. [procedure ResetK]
  33. @K := 0;
  34. @Return
  35.  
  36. [999]
  37. @SetColors(0,15);
  38. @ShowScreen;
  39. @DownArea(90,100,320,300,7);
  40. @A := 290;
  41. @B := 150;
  42. @Call:ResetK;
  43. @SetColors(14,15);
  44. [5]
  45. @K := %K + 1;
  46. @if (%K > 360*3) then call:ResetK;
  47. @C := sin(%K/3)*90+200;
  48. @Line(288,%B,296,%C);
  49. @GetPart(112,101,310,299);
  50. @PutPart(104,101);
  51. @Clear(289,101,296,299);
  52. @B := %C;
  53. @Delay(10);
  54. @GetMousePosition;
  55. @if (%y > 430) then goto:6;
  56. @goto:5;
  57. [6]
  58. ;@EnableStatusBar;
  59. @goto:100;