Radio Shack TRS-80 Operation Manual page 28

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - - T R S - a O
® - - - - - - - - - -
or
Integer
Examples
DIM V% (186)
1.0 DIM V(249)
2.0 CIRCLE (65,45),2.0,1
3.0 GET (1.0,1.0)-(12.0,8.0),V
An array is created, a circle is drawn and stored in the
array via the GET statement's rectangular pixel area's
parameters
(i.
e., <1.0,1.0) - <12.0 , 8.0) ) •
Calculate the dimensions of the array this way:
Rectangular pixel area is
I I I
x 71.
That equals:
111/8= 14
*
71 =994 + 4 = 998/4 =
25~
(10,10) , . . . . - - - - - - - - - - - - - . . , (120,10)
Rectangular
Pixel
Area
(10,80)
(120,80)
Figure
11
1.0 DIM
V(3.0,3~)
2.0 CIRCLE
(5~,5.0),1~
3.0 GET (1.0,1.0)-(8.0,8.0),V
A two-dimensional array is created, a circle is drawn and
stored in the array via the GET statement's rectangular
pixel area's parameters (i.e.,
(1.0,1.0)-(8.0,8~».
- - - - - - - - - l I a d l e l h a e l l - - - - - - - - -
-26-

Advertisement

Table of Contents
loading

Table of Contents