beautypg.com

HP Prime Graphing Wireless Calculator User Manual

Page 289

background image

Programming in HP PPL

285

EXPORT BOX()
BEGIN
RECT();
RECT_P(40,90,32

0,240,#000000,#

FF0000);
WAIT;
END;

SUBGROB_P

SUBGROB

Syntax: SUBGROB(srcGRB [ ,x1, y1, x2, y2], trgtGRB)

SUBGROB_P(srcGRB [ ,x1, y1, x2, y2], trgtGRB)

Sets trgtGRB to be a copy of the area of srcGRB between
points x1,y1 and x2,y2.
srcGRB can be any of the graphics variables and is
optional. The default is G0.
trgtGRB can be any of the graphics variables except G0.
x2, y2 are optional and if not specified will be the bottom
right of srcGRB.
x1, y1 are optional and if not specified will be the top left
of srcGRB.

Example: SUBGROB(G1, G4) will copy G1 in G4.

TEXTOUT_P

TEXTOUT

Syntax: TEXTOUT(text [ ,G], x, y [ ,font, c1, width, c2])

TEXTOUT_P(text [ ,G], x, y [ ,font, c1, width,

c2])

Draws text using color c1 on graphic G at position x, y
using font. Do not draw text more than width pixels wide
and erase the background before drawing the text using
color c2. G can be any of the graphics variables and is
optional. The default is G0.
Font can be:

0

: current font selected on the Homes Settings screen, 1:

small font 2: large font. Font is optional and if not
specified is the current font selected on the Homes Settings
screen.