![HP 40gs User Manual Download Page 369](http://html.mh-extra.com/html/hp/40gs/40gs_user-manual_156545369.webp)
Programming
21-21
Example
TLINE 0;0;3;3:
Erases previously drawn 45 degree line from (0,0) to
(3,3), or draws that line if it doesn’t already exist.
Graphic commands
The graphic commands use the graphics variables G0
through G9—or the Page variable from Sketch—as
graphicname
arguments. The
position
argument takes the
form (
x,y
). Position coordinates depend on the current
aplet’s scale, which is specified by Xmin, Xmax, Ymin,
and Ymax. The upper left corner of the target graphic
(
graphic2
) is at (Xmin,Ymax).
You can capture the current display and store it in G0 by
simultaneously pressing
+
.
DISPLAY
→
Stores the current display in
graphicname
.
DISPLAY
→
graphicname
:
→
DISPLAY
Displays graphic from
graphicname
in the display.
→
DISPLAY
graphicname
:
→
GROB
Creates a graphic from
expression
, using
font_size
, and
stores the resulting graphic in
graphicname
. Font sizes
are 1, 2, or 3. If the
fontsize
argument is 0, the HP 40gs
creates a graphic display like that created by the
SHOW
operation.
→
GROB
graphicname
;
expression
;
fontsize
:
GROBNOT
Replaces graphic in
graphicname
with bitwise-inverted
graphic.
GROBNOT
graphicname
:
GROBOR
Using the logical OR, superimposes
graphicname2
onto
graphicname1
. The upper left corner of
graphicname2
is
placed at
position
.
GROBOR
graphicname1
;
(
position
)
;
graphicname2
:
where position is expressed in terms of the current axes
settings, not in terms of pixel postion.
hp40g+.book Page 21 Friday, December 9, 2005 1:03 AM
Summary of Contents for 40gs
Page 10: ...hp40g book Page x Friday December 9 2005 1 03 AM ...
Page 64: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Page 80: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Page 86: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Page 100: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Page 126: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Page 182: ...hp40g book Page 28 Friday December 9 2005 1 03 AM ...
Page 274: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Page 303: ...Step by Step Examples 16 29 hp40g book Page 29 Friday December 9 2005 1 03 AM ...
Page 304: ...hp40g book Page 30 Friday December 9 2005 1 03 AM ...
Page 314: ...hp40g book Page 10 Friday December 9 2005 1 03 AM ...
Page 330: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...
Page 392: ...hp40g book Page 44 Friday December 9 2005 1 03 AM ...
Page 420: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Page 428: ...hp40g book Page 8 Friday December 9 2005 1 03 AM ...
Page 444: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...