beautypg.com

Drawing commands – HP 38g Graphing Calculator User Manual

Page 165

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

background image

The

Drawing commands

act on the display. The scale of the

display depends on the current aplet's Xmin, Xmax, Ymin,

and Ymax values.

The following examples assume the HP 38G

default settings with the Function aplet as the current aplet.

Drawing Commands

ARC

BOX

ERASE

FREEZE

UNE

Draws an arc with center

(x,y), radius,

start

Jingle

jneasurement,

and end_angle_measurement.

ARC

x ;y ;

r a d l

u s

;

s

ta r t_ a n g l

e _ ia e a s u r m e n t;

e n d _ a n g le _ m e a s u r m e n t

Example ARC

0;0

;

2

;

0 ; 3 6 0

Draws circle centered at (0,0) of radius 2.

Draws a box with opposite corners

(xl,yl)

and

(x2,yl).

BOX

x l; y l;x 2 ; y 2

Example BOX

Draws a box, lower corner at (-1 ,-l), upper corner at (1,1).

Use the FREEZE

command to display the

graphic until the user

presses a key.

Clears the display.

ERASE

Keeps the display from being updated after a program finishes
running.

Draws a line from

{xl, yl'}

to

{x2, yl).

LINE

X l;y l;x 2 ;y 2

Example LINE 0 ; 0 ; 3 ; 3

Draws a line from (0,0) to (3,3).

Programming 8-13