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
Содержание 40gs
Страница 10: ...hp40g book Page x Friday December 9 2005 1 03 AM ...
Страница 64: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 80: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 86: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 100: ...hp40g book Page 4 Friday December 9 2005 1 03 AM ...
Страница 126: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 182: ...hp40g book Page 28 Friday December 9 2005 1 03 AM ...
Страница 274: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 303: ...Step by Step Examples 16 29 hp40g book Page 29 Friday December 9 2005 1 03 AM ...
Страница 304: ...hp40g book Page 30 Friday December 9 2005 1 03 AM ...
Страница 314: ...hp40g book Page 10 Friday December 9 2005 1 03 AM ...
Страница 330: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...
Страница 392: ...hp40g book Page 44 Friday December 9 2005 1 03 AM ...
Страница 420: ...hp40g book Page 22 Friday December 9 2005 1 03 AM ...
Страница 428: ...hp40g book Page 8 Friday December 9 2005 1 03 AM ...
Страница 444: ...hp40g book Page 16 Friday December 9 2005 1 03 AM ...