MIX_MOD.LST 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. Listing:
  2. 1 MODULE MIX_MOD;
  3. 2
  4. 3 IMPORT GWinC2M,IO;
  5. 4
  6. 5 TYPE
  7. 6 A6G=ARRAY[1..6] OF GWinC2M.GCoord;
  8. ***** ^ not supported yet
  9. ***** ^ not supported yet
  10. 7 A4G=ARRAY[1..4] OF GWinC2M.GCoord;
  11. ***** ^ not supported yet
  12. ***** ^ not supported yet
  13. 8
  14. 9 VAR
  15. 10 W:GWinC2M.GWindow;
  16. ***** ^ not supported yet
  17. 11 it:INTEGER;
  18. 12 penx,peny:A6G;
  19. ***** ^ not supported yet
  20. 13 trix,triy:A4G;
  21. ***** ^ not supported yet
  22. 14 I:INTEGER;
  23. 15
  24. 16 BEGIN
  25. 17 W.ct__@Fssssi(0,0,1024,1024,4);
  26. ***** ^ not supported yet
  27. ***** ^ not supported yet
  28. ***** ^ not supported yet
  29. 18 FOR it:=0 TO 4 DO
  30. 19 W.ReSize(it*75,it*75,1024-it*25,1024-it*25);
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. ***** ^ not supported yet
  34. 20 W.SetColor(1,0);
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. 21 W.Clear(-1);
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. 22 penx:=A6G(300,700,1000,512,30,0);
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. 23 peny:=A6G(1000,1000,300,10,300,0);
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. 24 trix:=A4G(300,700,512,0);
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. 25 triy:=A4G(800,800,300,0);
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. 26 W.Polygon(5,ADR(penx),ADR(peny),-1);
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. ***** ^ undeclared identifier
  58. ***** ^ not supported yet
  59. ***** ^ undeclared identifier
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 27 W.Polygon(3,ADR(trix),ADR(triy),-1);
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ undeclared identifier
  66. ***** ^ not supported yet
  67. ***** ^ undeclared identifier
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. 28 W.Fill(512,900,-1,TRUE);
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. 29 W.SetColor(3,-1);
  75. ***** ^ not supported yet
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. 30 W.CursorPosition(200,512);
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 31 GWinC2M.cputs(ADR('C++/Modula-2 Graphics Library Class Interface'+0C));
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ undeclared identifier
  86. ***** ^ not supported yet
  87. ***** ^ arithmetic operand must be numeric
  88. 32 FOR I:=0 TO 1023 DO
  89. 33 W.SetColor(I,-1);
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. 34 W.Plot(I,I,-1);
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. 35 W.Plot(I,1024-I,-1)
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 36 END;
  102. 37 W.SetColor(4,-1);
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 38 I:=511;
  107. 39 WHILE I>0 DO
  108. 40 W.EllipticArc(512,512,I,I,I,I+90);
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. 41 I:=I-20
  113. 42 END;
  114. 43 I:=0;
  115. 44 WHILE I<360 DO
  116. 45 W.SetColor(I DIV 30,-1);
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. ***** ^ not supported yet
  120. 46 W.EllipticPie(900,500,100,500,I,I+30,1);
  121. ***** ^ not supported yet
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. 47 I:=I+30
  125. 48 END;
  126. 49 I:=900;
  127. 50 WHILE I>0 DO
  128. 51 W.SetColor(I DIV 100+1,-1);
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. 52 W.Cuboid(1000-I,I,I DIV 10,I DIV 10,I DIV 10,0,0);
  133. ***** ^ not supported yet
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. 53 I:=I-100
  137. 54 END;
  138. 55 W.CursorPosition(362,512+W.CharHeight());
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. 56 GWinC2M.cputs(ADR('Press any key to continue'+0C));
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ undeclared identifier
  148. ***** ^ not supported yet
  149. ***** ^ arithmetic operand must be numeric
  150. 57 IF (IO.RdKey()=0C) AND (IO.RdKey()=0C) THEN END;
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. 58 END;
  158. 59 W.dt__;
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. 60 END MIX_MOD.
  162. 100 errors