HP (Hewlett-Packard) NW280AAABA Calculator User Manual


 
Programming in HP PPL 541
PIXON_P
PIXON Syntax: PIXON([G], x, y [ ,color])
PIXON_P([G], x, y [ ,color])
Sets the color of the pixel G with coordinates x,y to color.
G can be any of the graphics variables and is optional.
The default is G0, the current graphic. Color can be any
color specified as #RRGGBB. The default is black.
RECT_P
RECT Syntax: RECT([G, x1, y1, x2, y2, edgecolor, fillcolor])
RECT_P([G, x1, y1, x2, y2, edgecolor, fillcolor])
Draws a rectangle on G between points x1,y1 and x2,y2
using edgecolor for the perimeter and fillcolor for the
inside.
G can be any of the graphics variables and is optional.
The default is G0, the current graphic.
x1, y1 are optional. The default values represent the top
left of the graphic.
x2, y2 are optional. The default values represent the
bottom right of the graphic.
edgecolor and fillcolor can be any color specified as
#RRGGBB. Both are optional, and fillcolor defaults to
edgecolor if not specified.
To erase a GROB, execute RECT(G). To clear the screen
execute RECT().
When optional arguments are provided in a command
with multiple optional parameters (like RECT), the
arguments provided correspond to the leftmost parameters
first. For example, in the program below, the arguments
40 and 90 in the RECT_P command correspond to x1
and y1. The argument #000000 corresponds to
edgecolor, since there is only the one additional
argument. If there had been two additional arguments,
they would have referred to x2 and y2 rather than
edgecolor and fillcolor. The program produces a
rectangle with a black edge and black fill.