Chapter
10
I
BASIC Keywords
Here are some sample styles showing the bit representation, the
line drawn, and their hex equivalents:
0
1
0
1
0
1
0
10
1
0
1
0
1
0
1
equals &H5555
-
is drawn
-----__
1
1
0
1 1
0
1 1
0
1
1
0
1
1
0
lequals&HDBGD
-
is drawn
__
__
--
__
-_
Examples
You can try these examples in Screen Modes
1
to
6. The color,
size, and position of the image on the display vary, depending on
the current screen mode.
LINE
-(319,
199)
draws
a
line from the last point referenced
to
point 319,199 in
the default color. This is the simplest form of the LINE state-
ment. Note that when you omit the beginning points you must
still include the hyphen.
LINE
(0,0)-(319,199)
draws a diagonal line on the display in the default color.
LINE
C
0,100 )-(319,100
1
,l
draws
a
horizontal line across the display in Color
1.
LINE
(0,0)-<100,100),
,E
draws
a
box in the upper left corner
of
the display.
LINE
(0,0)-(200,200),1
,BF
draws a box on the display and fills it in with Color
1.
LINE
(0,0)-(200,200),1,B,
&H5555
draws
a
box outlined by a dashed line.
200