annotate docs/basic09/gfx.appendix @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents 08fcfa9b150a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1015
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
1 <appendix>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
2 <title>The &b09; Graphics Interface Module</title>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
3 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
4 The Graphics Interface module provides a simple and convenient
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
5 way to access the color graphics and joystick functions of the
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
6 Dragon Computer from &b09; programs. The module is a program
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
7 written in assembly language and stored in a file called "GFX". It
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
8 can be loaded into memory using the OS-9 "LOAD" command prior to or
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
9 after called &b09;, or it will be automatically called by &b09;
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
10 the first time it is referenced in a program if the "GFX" file is
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
11 located in the execution ("CMDS") directory.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
12 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
13 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
14 "GFX" is called using the &b09; "RUN" statement. The first
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
15 parameter passed is the name of the graphics function desired.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
16 Other parameters are used to pass coordinates, color modes, etc.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
17 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
18 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
19 The are two basic graphics modes: 4-color having 128 by 192
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
20 pixel resolution, and 2-color having 256 by 192 pixel resolution.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
21 The display is treated as a 256 by 192 point grid with coordinates
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
22 0,0 in the lower left-hand corner. X (horizontal) coordinates in
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
23 either mode must be in the range of 0 to 255. An X-coordinate
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
24 greater than 255 will cause a run-time error. Y coordinates
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
25 (vertical) must be in the range of 0 to 191. A number greater than
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
26 191 will be replaced by 191. Some of the graphics functions require
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
27 or optionally accept a color mode which controls the foreground
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
28 color and color set. The mode and color codes are given in the
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
29 table on the next page.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
30 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
31 <beginpage/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
32 <table frame="none">
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
33 <title>Color Graphics Modes and Color Codes</title>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
34 <tgroup cols="6">
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
35 <colspec colname="c1" colwidth="0.6in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
36 <colspec colname="c2" colwidth="0.4in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
37 <colspec colname="c3" colwidth="1in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
38 <colspec colname="c4" colwidth="1in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
39 <colspec colname="c5" colwidth="1in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
40 <colspec colname="c6" colwidth="1in"/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
41 <thead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
42 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
43 <entry morerows="1" namest="c2">Color Code</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
44 <entry align="center" namest="c3" nameend="c4">Two Color Format</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
45 <entry align="center" namest="c5" nameend="c6">Four Color Format</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
46 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
47 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
48 <entry namest="c3">Background</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
49 <entry namest="c4">Foreground</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
50 <entry namest="c5">Background</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
51 <entry namest="c6">Foreground</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
52 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
53 </thead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
54 <tbody>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
55 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
56 <entry morerows="3" valign="middle">Color Set 1</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
57 <entry align="center">00</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
58 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
59 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
60 <entry align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
61 <entry align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
62 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
63 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
64 <entry align="center">01</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
65 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
66 <entry align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
67 <entry align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
68 <entry align="left">Yellow</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
69 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
70 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
71 <entry align="center">02</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
72 <entry namest="c5" align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
73 <entry align="left">Blue</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
74 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
75 <row rowsep="1">
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
76 <entry align="center">03</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
77 <entry namest="c5" align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
78 <entry align="left">Red</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
79 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
80 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
81 <entry morerows="3" valign="middle">Color Set 2</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
82 <entry align="center">04</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
83 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
84 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
85 <entry align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
86 <entry align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
87 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
88 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
89 <entry align="center" namest="c2">05</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
90 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
91 <entry align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
92 <entry align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
93 <entry align="left">Cyan</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
94 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
95 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
96 <entry align="center" namest="c2">06</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
97 <entry namest="c5" align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
98 <entry align="left">Magenta</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
99 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
100 <row rowsep="1">
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
101 <entry align="center" namest="c2">07</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
102 <entry namest="c5" align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
103 <entry align="left">Orange</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
104 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
105 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
106 <entry morerows="3" valign="middle">Color Set 3*</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
107 <entry align="center">08</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
108 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
109 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
110 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
111 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
112 <entry align="center" namest="c2">09</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
113 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
114 <entry align="left">Dark Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
115 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
116 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
117 <entry align="center" namest="c2">10</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
118 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
119 <entry align="left">Med. Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
120 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
121 <row rowsep="1">
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
122 <entry align="center" namest="c2">11</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
123 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
124 <entry align="left">Light Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
125 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
126 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
127 <entry morerows="3" valign="middle">Color Set 4*</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
128 <entry align="center">12</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
129 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
130 <entry align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
131 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
132 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
133 <entry align="center" namest="c2">13</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
134 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
135 <entry align="left">Green</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
136 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
137 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
138 <entry align="center" namest="c2">14</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
139 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
140 <entry align="left">Red</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
141 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
142 <row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
143 <entry align="center" namest="c2">15</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
144 <entry namest="c5" align="left">Black</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
145 <entry align="left">Buff</entry>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
146 </row>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
147 </tbody>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
148 </tgroup>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
149 </table>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
150 <note>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
151 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
152 Color Sets 3 and 4 are not available on PAL video system
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
153 (U.K. and European) models.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
154 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
155 </note>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
156 <bridgehead renderas="sect2">MODE</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
157 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
158 <command>RUN GFX("Mode",<replaceable>format,color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
159 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
160 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
161 MODE switches the screen from alphanumeric to graphics display mode,
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
162 and selects the screen mode and color mode. "Format" determines
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
163 between two-color (Format = 0), or four-color (Format = 1)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
164 graphics modes. "Color" is the initial color code that specifies
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
165 the foreground color and color set.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
166 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
167 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
168 This command must be given before aby other graphics command is
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
169 used. The first time MODE is called, it requests 6K bytres of memory
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
170 from OS-9 for use as the graphics display memory. MODE will return
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
171 an error if sufficient free memory is not available.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
172 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
173 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
174 An example:
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
175 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
176 RUN GFX("Mode",1,3)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
177 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
178 selects four-color mode graphics is used, and the initial
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
179 foreground color is red.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
180 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
181 <bridgehead renderas="sect2">MOVE</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
182 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
183 <command>RUN GFX("Move",<replaceable>x,y</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
184 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
185 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
186 MOVE positions the (invisible) graphics cursor to the specified
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
187 location without changing the display. X and Y are the coordinates
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
188 of the new position.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
189 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
190 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
191 Example:
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
192 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
193 RUN GFX("Move",0,0)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
194 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
195 This example positions the cursor in the lower left-hand corner.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
196 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
197 <bridgehead renderas="sect2">COLOR</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
198 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
199 <command>RUN GFX("Color",<replaceable>color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
200 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
201 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
202 COLOR changes the current foreground color (and possibly the color
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
203 set). The current graphics mode and cursor position are not
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
204 changed. For example:
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
205 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
206 RUN GFX("Color",0)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
207 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
208 changes the foreground color to green in four-color format (or
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
209 black in two-color format).
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
210 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
211 <bridgehead renderas="sect2">POINT</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
212 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
213 <command>RUN GFX("Point",<replaceable>x,y</replaceable>) or</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
214 <command>RUN GFX("Point",<replaceable>x,y,color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
215 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
216 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
217 POINT moves the graphics cursor to the specified X.Y coordinate and
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
218 sets the pixel at that coordinate to the current foreground color.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
219 If the optional "Color" is specified, the current foreground color
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
220 is set to the given "Color". For example:
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
221 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
222 RUN GFX("Point",0,192,1)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
223 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
224 Point moves the cursor to the upper left-hand corner and changes
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
225 the foreground color to green in two-color format, or it changes
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
226 the color to yellow in the four-color format.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
227 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
228 <bridgehead renderas="sect2">CLEAR</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
229 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
230 <command>RUN GFX("Clear") or</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
231 <command>RUN GFX("Clear",<replaceable>color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
232 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
233 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
234 CLEAR resets all points on the screen to the background color, or
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
235 if the optional color is given presets the screen to that color.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
236 The current graphics cursor is reset to (0,0).
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
237 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
238 <bridgehead renderas="sect2">LINE</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
239 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
240 <command>RUN GFX("Line",<replaceable>x2,y2</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
241 <command>RUN GFX("Line",<replaceable>x2,y2,color</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
242 <command>RUN GFX("Line",<replaceable>x1,y1,x2,y2</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
243 <command>RUN GFX("Line",<replaceable>x1,y1,x2,y2,color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
244 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
245 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
246 LINE draw lines in various ways. If one coordinate is given, the
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
247 line will be drawn from the current graphics cursor position to the
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
248 coordinates specified. If two sets of coordinates are given, they
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
249 are used as the start and end points of the line. The line will be
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
250 drawn in the current foreground color unless a new color is given
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
251 as a parameter. After the line is drawn the graphics cursor will be
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
252 positioned at x2,y2. For example
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
253 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
254 RUN GFX("Line",0,0,0,192)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
255 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
256 draws a line from (0,0) to (0,192).
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
257 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
258 RUN GFX("line",24,65,2)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
259 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
260 draws a blue line (4-color mode) to point 24,65.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
261 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
262 <bridgehead renderas="sect2">CIRCLE</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
263 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
264 <command>RUN GFX("Circle",<replaceable>radius</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
265 <command>RUN GFX("Circle",<replaceable>radius,color</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
266 <command>RUN GFX("Circle",<replaceable>x,y,radius</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
267 <command>RUN GFX("Circle",<replaceable>x,y,radius,color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
268 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
269 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
270 CIRCLE draws a circle of the given radius. The current graphics
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
271 cursor position is assumed if no X,Y value is given. The current
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
272 foreground color is assumed if the Color parameter is not used.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
273 The center of the circle must be on the screen.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
274 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
275 <bridgehead renderas="sect2">ALPHA</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
276 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
277 <command>RUN GFX("Alpha")</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
278 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
279 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
280 Alpha is a quick convenient way of getting the screen back to
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
281 alphanumeric mode. When graphics mode is entered again, the screen
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
282 will show the previous unchanged graphics display.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
283 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
284 <bridgehead renderas="sect2">QUIT</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
285 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
286 <command>RUN GFX("Quit")</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
287 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
288 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
289 QUIT switches the screen back to alpha mode and returns the 6K byte
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
290 graphics display memory to OS-9.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
291 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
292 <bridgehead renderas="sect2">GLOC</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
293 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
294 <command>RUN GFX("Gloc",<replaceable>vdisp</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
295 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
296 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
297 GLOC returns the address of the video display RAM as an integer number.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
298 This address may be used in subsequent PEEK and POKE
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
299 operations to access the video display directly. GLOC can be used
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
300 to create special functions that are not available in the Graphics
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
301 Module.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
302 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
303 <bridgehead renderas="sect2">GCOLR</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
304 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
305 <command>RUN GFX("Gcolr",<replaceable>color</replaceable>)</command><sbr/>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
306 <command>RUN GFX("Gcolr",<replaceable>x,y,color</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
307 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
308 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
309 GCOLR is used to read the color of the pixel at the current
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
310 graphics cursor position, or from the coordinates X,Y. The
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
311 parameter "Color" may be an integer or a byte variable in which the
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
312 color code is returned.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
313 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
314 <bridgehead renderas="sect2">JOYSTK</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
315 <cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
316 <command>RUN GFX("Joystk",<replaceable>stick,fire,x,y</replaceable>)</command>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
317 </cmdsynopsis>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
318 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
319 JOYSTK returns the status of the specified joystick's Fire button,
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
320 and returns the X,Y position of the joystick. The Fire button may
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
321 be read as a BYTE, INTEGER, or a BOOLEAN value. Non-zero (TRUE)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
322 means the button was pressed. The X,Y values returned may be BYTE
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
323 or INTEGER variables, and they will be in the range 0 to 63. The
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
324 Stick parameter may be BYTE or INTEGER, and should be 0 for
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
325 RIGHT, or 1 for LEFT, depending on whether the RIGHT or the LEFT
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
326 joystick is to be tested.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
327 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
328 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
329 Example:
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
330 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
331 RUN GRX("Joystk",1,leftfire,leftx,lefty)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
332 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
333 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
334 <bridgehead renderas="sect1">A Sample Graphics Program</bridgehead>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
335 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
336 The program on the next page illustrates how the GFX module is
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
337 called and used. It creates an analog clock on the graphics
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
338 display.
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
339 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
340 <para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
341 <programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
342 PROCEDURE clk
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
343 0000 (* Simple Clock Simulator *)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
344 001C DIM time(4),last(4),xx(3),yy(3):INTEGER
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
345 0043 DIM x0,y0,radius,bkg:INTEGER
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
346 0056 DIM i,j,x1,y1,x2,y2:INTEGER
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
347 0071 DEG
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
348 0073 bkg=0
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
349 007A x0=128
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
350 0081 y0=96
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
351 0088 radius=95
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
352 008F RUN GFX("MODE",1,bkg+1)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
353 00A5 RUN GFX("CLEAR")
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
354 00B2 RUN GFX("CIRCLE",x0,y0,radius)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
355 00CF FOR i=0 to 89 STEP 6
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
356 00E4 x2=SIN(i)*radius
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
357 00F4 y2=COS(i)*radius
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
358 0104 x1=x2*.9
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
359 0115 y1=y2*.9
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
360 0126 j=MOD(i/30,3)+bkg+1
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
361 013B RUN GFX("LINE",x0+x1,y0+y1,x0+x2,y0+y2,j)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
362 016C RUN GFX("LINE",x0-x1,y0-y1,x0-x2,y0-y2,j)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
363 019D RUN GFX("LINE",x0+y1,y0-x1,x0+y2,y0-x2,j)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
364 01CE RUN GFX("LINE",x0-y1,y0+x1,x0-y2,y0+x2,j)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
365 01FF NEXT i
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
366 020A FOR i=1 TO 3
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
367 021A time(i)=0
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
368 0225 xx(i)=x0
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
369 0231 yy(i)=y0
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
370 023D NEXT i
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
371 0248 LOOP
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
372 024A time$=DATE$
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
373 0250 last=time
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
374 0258 time(3)=VAL(MID$(time$,16,2))*6
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
375 026E time(2)=VAL(MID$(time$(13,2))*6
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
376 0284 time(1)=MOD(VAL(MID$(time$,10,2))*30+time/2)/12,360)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
377 02A9 j=last(3)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
378 02B3 FOR i=3 TO 1 STEP -1
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
379 02C9 IF i=3 OR j=0 OR ABS(time(i)-last(i+1))&lt;6 OR
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
380 ABS(time(i)-j)&lt;6 THEN
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
381 0300 RUN GFX("LINE",x0,y0,xx(i),yy(i),bkg)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
382 032B xx(i)=x0+SIN(time(i))*radius*(.3+i*.2)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
383 035A yy(i)=y0+COS(time(i))*radius*(.3+i*.2)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
384 0389 RUN GFX("LINE",x0,y0,xx(i),yy(i),bkg+i)
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
385 03B7 ENDIF
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
386 03B9 NEXT i
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
387 03C4 WHILE time$=DATE$ DO
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
388 03CF ENDWHILE
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
389 03D3 ENDLOOP
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
390 </programlisting>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
391 </para>
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
392
08fcfa9b150a The gfx module is now in a seperate file
roug
parents:
diff changeset
393 </appendix>