Sharp mz-800 Owner's Manual page 135

Hide thumbs Also See for mz-800:
Table of Contents

Advertisement

RLINE
Format
RLINE [% <line type>,] xl,yl [, x2,y2, ..., xi, yi]
Explanation
The RLINE statement draws a line from the current pen location to the location
Example
indicated by relative coordinates (x1,y1), then draws a line from that point to the
location indicated by relative coordinates (x2,y2), etc.
xi must be an integer from —480 to 480 and yi must be an integer from —999 to
999. The line styles selectable with <line type> are the same as for the PLINE
statement.
The RLINE statement is only valid in the graphics mode.
10 PMODE GR
20 SQ=INT (120*SQR(3))
30 RLINE %1,240,0, — 120,-SQ,-—120,SQ
40 PMODE TN
This program draws a triangle with solid lines.
PMOVE
Format
Explanation
Example
PMOVE
<X coordinate>, <Y coordinate>
The PMOVE statement lifts the pen and moves it to the specified location (x,y).
<X coordinate> and <Y coordinate> must be an integer in the range — 480 to
480 and —999 to 999, respectively.
This statement is only valid in the graphics mode.
The following program draws a cross with sides 480 units long:
10 PMODE GR
20 PLINE 0,0,480,0
30 PMOVE 240,240
40 PLINE 240,240,240, — 240
50 PMODE TN
Remember to advance the paper before executing this program.
6-78

Advertisement

Table of Contents
loading

Table of Contents