Sharp mz-800 Owner's Manual page 137

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

Advertisement

HSET
Format
Explanation
Example
HSET
Abbreviated Format
H.
The HSET statement sets the current pen location as the new origin. The most ap-
propriate location for drawing figures can be set as the origin by moving the pen
to the location with a PMOVE statement before specifying a HSET statement. This
statement is only vaid in the graphics mode.
10 PMODE GR
20 PMOVE 246, — 240
SOUMSET) .ssessicansnsasipaspers .. Sets (240, — 240) as the new origin (0,0).
40 PMOVE 240,0
50 PLINE 240,0,0, — 240, — 240,0,0,240,240,0
60 PHOME
70 PMODE TN
GPRINT
Format
Explanation
Example
GPRINT [[<size>,<angle>],]
<text data>
Abbreviated Format
GP.
The GPRINT statement prints the specified character using the specified size and
angle.
<size> may be any number from 0 to 63. 80 characters can be printed per line
when <size> =0; 40 characters per line when <size> =1; and 26 characters per
line when <size> =2, <angle> indicates the direction in which character lines
are printed. The character is rotated with respect to its lower left corner by the an-
gle specified with <angle>. <angle> must be an integer from 0 to 3. When <size>
and <angle> are omitted, the previous or default settings are assumed. The initial
(default) values are <size> =1 and <angle> =0.
The GPRINT statement is only valid in the graphics mode.
10 PMODE GR
20 GPRINT AY sscsevensseas
Prints ''A'' in the graphics mode.
30 PMOVE 240,
— 240
40 GPRINT [2,2],"'A"'......... Prints an upside down ''A"' in the 26 characters/line
50 PHOME
mode.
60 PMODE TN
6-80

Advertisement

Table of Contents
loading

Table of Contents