Radio Shack TRS-80 Operation Manual page 58

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

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - T R S - B O
® - - - - - - - - - -
l~
VIEW
(1~,1~)-(6~~,2~~),~,1
2~
VIEW
(5~,5~)-(1~~,1~~),~,1
3~ LINE(RND(5~~),RND(19~»-(RND(5~~),RND(19~»
4~
GOTO
3~
First you defined a large viewport that almost covered the
entire screen. Next you defined a smaller viewport. The
Random command draws lines within the specified parameters
but only the segments of the lines that are within the
parameters of the smaller viewport are visible since it was
specified last.
l~ VIEW(8~,8~)-(4~~,2~~),~,1
2~ VIEW(I~~,9~)-(3~~,17~),~,1
3~ VIEW(12~,I~~)-(2~~,2~~),~,1
4~ VIEW(5~,5~)-(I~~,I~~),~,1
Draws four viewports. All further drawing takes place in the
last viewport specified.
l~ VIEW(21~,8~)-(42~,16~),~,1
2~ CIRCLE(3~~,12~),18~,1
3~ LINE(15,15)-(6~,6~),1
4~ CIRCLE(9~,4~),5~,1
5~ LINE(4~,3~)-(5~~,3~),1
Draws a viewport. Draws a circle but only a portion is
within the parameters of the viewport. This circle's
centerpoint is relative to the upper left corner of the
viewport and not to the absolute coordinates of the graphics
Cartesian system. A line is drawn which is totally within
the parameters of the viewport. Another circle is drawn
which is totally within the parameters of the viewport.
Another line is drawn which is only partially within the
parameters of the viewport.
l~
VIEW
(19~,7~)-(44~,18~),~,1
2~
CIRCLE
(3~~,14~),17~,1
3~
CIRCLE
(1~~,23~),4~~,1
4~
LINE
(1~,1~)-(5~~,23~),1
Draws a viewport. A circle is drawn but only a portion is
within the parameters of the viewport. knother circle is
drawn and a larger portion is within the parameters of the
- - - - - - - - - I t M I I O I h a e I l - - - - - - - - -
-56-

Advertisement

Table of Contents
loading

Table of Contents