beautypg.com

Example, Graphic commands, Graphic commands -20 – HP 39g Graphing Calculator User Manual

Page 228: Freeze line pixoff pixon tune, Display-^ ^display

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

FREEZE

LINE

PIXOFF

PIXON

TUNE

Halts the program, freezing the curi'ent display. Execution
resumes when any key is pressed.

Draws a line from (.i7, yl) to (.v2, y2).

LINE A7;y7;x2;y2;

Turns off the pixel at the specified coordinates (x,y).

PIXOFF A ;y:

Turns on the pixel at the specified coordinates (x,y).

PIXON

a

;>’:

Toggles the pixels along the line from

(

a

/,

yl) to

(

a

2,

y2) on

and off. Any pixel that was turned off, is turned on; any pixel

that was turned on, is turned off. TLINE can be used to erase
a line.

T h l N E

xl ;yl ;x2;y2:

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 GO through
G9—or the Page variable from Sketch—as graphicname

arguments. The position argument takes the form

(

a

,

v

).

Position coordinates depend on the cun'ent aplet's scale,

which is specified by Xmin, Xmax, Ymin, and Ymax. The
upper left comer of the target graphic {graphic!) is at
(Xmin, Ymax).

You can capture the current display and store it in GO by
simultaneously pressing

fONl+| PLOT|.

DISPLAY-^

^DISPLAY

Stores the current display in graphicname.

DISPLAY—> graphicname

Displays graphic from graphicname in the display.

—^DISPLAY graphicname

15-20

Programming