Radio Shack TRS-80 Operation Manual page 59

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

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - T R S · B O
® - - - - - - - - - -
viewport. A line is drawn but only a segment is within the
parameters of the viewport.
&VIEW (function)
Returns Viewport Coordinates
&VIEW returns a corner coordinate of a viewport. It is
important to note the parentheses are not optional. If you
enter the &VIEW function without the parentheses, a Syntax
Error will result.
To display one of the four viewport coordinates, you must
enter one of the following values for p:
~
returns the upper left X-coordinate
1
returns the upper left Y-coordinate
2
returns the lower right X-coordinate
3
returns the lower right Y-coordinate
Important Note: When you have defined several viewports,
&VIEW only returns the coordinates of the last-defined
viewport.
Examples
Set up the following viewport:
VIEW(1~~,8~)-(22~,15~),~,1
Now type:
Displays:
Type:
Displays:
PRINT
&VIEW(~)
<ENTER>
PRINT &VIEW(l) <ENTER>
8~
- - - - - - - - - - l t a d I 8 I h a e l l - - - - - - - - - -
-57-

Advertisement

Table of Contents
loading

Table of Contents