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

  1. [1!]
  2.  
  3. @SetColors(0,0);
  4.  
  5. @Line(50,270,50,1);
  6. @Line(50,150,220,150);
  7. @Line(420,150,600,150);
  8. @Line(45,5,50,1);
  9. @Line(55,5,50,1);
  10. @Line(592,145,600,150);
  11. @Line(592,155,600,150);
  12.  
  13. @SetPosition(10,1);
  14. @FastWrite('150%');
  15. @SetPosition(10,47);
  16. @FastWrite('100%');
  17. @SetPosition(15,97);
  18. @FastWrite('50%');
  19. @SetPosition(25,147);
  20. @FastWrite('0%');
  21. @SetPosition(10,197);
  22. @FastWrite('-50%');
  23. @SetPosition(10,247);
  24. @FastWrite('-100%');
  25. @SetPosition(605,158);
  26. @FastWrite('t');
  27.  
  28. @SetColors(0,0);
  29. @SetPosition(60,271);
  30. @FastWrite('Wzmocnienie');
  31. @SetPosition(75,281);
  32. @FastWrite('w [dB]');
  33.  
  34. @SetPosition(485,271);
  35. @FastWrite('Przesuniæcie');
  36. @SetPosition(505,281);
  37. @FastWrite('czasowe');
  38. @SetPosition(519,291);
  39. @FastWrite('[ns]');
  40.  
  41. @L:=0
  42. @J:=0
  43. @SetColors(8,15);
  44. @DrawButton(40,300,70,320,5,500,'<','');
  45. @SetColors(13,0);
  46. @Bar(72,300,118,320);
  47. @SetColors(0,0);
  48. @WriteValue(72,300,118,320,0,1,%J);
  49. @SetColors(8,15);
  50. @DrawButton(120,300,150,320,5,501,'>','');
  51.  
  52. @DrawButton(470,300,500,320,5,502,'<','');
  53. @SetColors(13,0);
  54. @Bar(502,300,568,320);
  55. @SetColors(0,0);
  56. @WriteValue(502,300,568,320,0,1,%L);
  57. @SetColors(8,15);
  58. @DrawButton(570,300,600,320,5,503,'>','');
  59.  
  60. @DrawButton(260,300,360,320,5,504,'RYSOWANIE','');
  61.  
  62. @ShowScreen;
  63.  
  64. @SetColors(0,0);
  65. @A:=0
  66. @E:=150
  67. @B:=0
  68. @Repeat:200
  69. @Line(50,150,600,150);
  70. @C:=sin(3.14159*%A/200)
  71. @K:=%C*%C*100
  72. @C:=%K
  73. @Line(%A+220,%E,%A+221,150-%C);
  74. @E:=150-%C
  75. @If (%B=10) then GoSub:507;
  76. @A:=%A+1
  77. @B:=%B+1
  78. @Next;
  79.  
  80. [3]
  81. @CheckEvents;
  82.  
  83. [500]
  84. @If (%J=-9) then GoTo:3;
  85. @J:=%J-0.5
  86. @SetColors(13,0);
  87. @Bar(72,300,118,320);
  88. @SetColors(0,0);
  89. @WriteValue(72,300,118,320,0,1,%J);
  90. @GoTo:3
  91.  
  92. [501]
  93. @If (%J=9) then GoTo:3;
  94. @J:=%J+0.5
  95. @SetColors(13,0);
  96. @Bar(72,300,118,320);
  97. @SetColors(0,0);
  98. @WriteValue(72,300,118,320,0,1,%J);
  99. @GoTo:3
  100.  
  101. [502]
  102. @If (%L=-1000) then GoTo:3;
  103. @L:=%L-50
  104. @SetColors(13,0);
  105. @Bar(502,300,568,320);
  106. @SetColors(0,0);
  107. @WriteValue(502,300,568,320,0,1,%L);
  108. @GoTo:3
  109.  
  110. [503]
  111. @If (%L=1000) then GoTo:3;
  112. @L:=%L+50
  113. @SetColors(13,0);
  114. @Bar(502,300,568,320);
  115. @SetColors(0,0);
  116. @WriteValue(502,300,568,320,0,1,%L);
  117. @GoTo:3
  118.  
  119. [504]
  120. @Clear(220,1,420,259);
  121. @SetColors(0,0);
  122. @GoTo:521
  123.  
  124. [507]
  125. @Line(221+%A,150,221+%A,150-%C);
  126. @B:=0;
  127. @Return;
  128.  
  129. [521]
  130. @G:=((%J*5.5/100)+1)*100
  131. @H:=%L/2500
  132. @SetColors(0,0);
  133. @A:=0
  134. @E:=150
  135. @F:=150
  136. @B:=0
  137. @Repeat:200
  138. @C:=sin(3.14159*%A/200)
  139. @I:=%C*%C
  140. @C:=%I*%G
  141. @Line(%A+220,%E,%A+221,150-%C);
  142. @E:=150-%C
  143. @D:=(sin(3.14159*%A/100)*%G*%H)-((%G-100)*%I)
  144. @If (%D>%C) then GoTo:531;
  145. [532]
  146. @Line(%A+220,%F,%A+221,150-%D);
  147. @F:=150-%D
  148. @If (%B=10) then GoTo:530;
  149. [522]
  150. @A:=%A+1
  151. @B:=%B+1
  152. @Next;
  153. @GoTo:3
  154.  
  155. [530]
  156. @Line(%A+221,150-%D,%A+221,150-%C);
  157. @B:=0
  158. @GoTo:522
  159.  
  160. [531]
  161. @D:=%C
  162. @GoTo:532