Radio Shack TRS-80 Operation Manual page 88

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

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - - T R S · B O
® - - - - - - - - - -
Sample Program
919191191
C
DRAW TWO INTERSECTING CIRCLES
919191291
CALL GRPINI
( l
>
919191391
CALL CLS
919191491
CALL SETXY(19l9l,19l9l>
919191591
CALL CIRCLE(591,1,91.91,91.91,91.91>
919191691
C
DRAW SECOND CIRCLE WITH CENTER
291
919191791
C
PIXELS TO THE RIGHT OF FIRST CIRCLE
919191891
CALL SETXYR(291,91>
919191991
CALL CIRCLE(591,1,91.91,91.91,91.91>
919119191
END
VIEW
Sets Viewport
VIEW draws viewports on your screen. Graphics is displayed
only in the last defined viewport.
The upper-left corner of viewport is read as
(91,91>
(the
"relative origin"> when creating items inside the viewport.
All the other coordinates are read relative to this origin.
However, the "absolute coordinates" of the viewport, as they
are actually defined on the Graphics Cartesian system, are
retained in memory and can be read using VIEW as a function.
- - - - - - - - - I t a d l e l h a e l l - - - - - - - - -
-1191-

Advertisement

Table of Contents
loading

Table of Contents