HP Prime Graphing Wireless Calculator Instrukcja Użytkownika Strona 642

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 641
ARC(0,0,60,0,π,RGB(255,0,0)) draws a red semicircle with center at (0,0)—using the current Plot
Setup window—and with a radius of 60 pixels. The semicircle is drawn counterclockwise from 0 to π.
BLIT_P, BLIT
Syntax: BLIT([trgtGRB, dx1, dy1, dx2, dy2], [srcGRB, sx1, sy1, sx2, sy2, c,
alpha])
Syntax: BLIT_P ([trgtGRB, dx1, dy1, dx2, dy2], [srcGRB, sx1, sy1, sx2, sy2,
c, alpha])
Copies the region of srcGRB from (and including) point (sx1, sy1) to (but not including) point (sx2, sy2), into
the region of trgtGRB between points (dx1, dy1) and (dx2, dy2). In practice, 1 is added to each of sx1 and sx2
to obtain the correct region. Does not copy pixels from srcGRB that are color c.
The number alpha must be between 0 (transparent) and 255 (opaque). It represents the transparency, or
alpha channel, of the source bitmap.
trgtGRB can be any of the graphics variables and is optional. The default is G0.
srcGRB can be any of the graphics variables.
dx2, dy2 are optional and, if not specied, are calculated so that the destination area is the same size as the
source area.
sx2, sy2 are optional and, if not specied, are the bottom-right corner of the srcGRB.
sx1, sy1 are optional and, if not specied, are the top-left corner of the srcGRB.
dx1, dy1 are optional and, if not specied, are the top-left corner of trgtGRB.
c can be any color specied as #RRGGBB. If it is not specied, all pixels from srcGRB will be copied.
alpha is optional and, if not specied, is 255 (opaque) by default.
NOTE: Using the same variable for trgtGRB and srcGRB can be unpredictable when the source and
destination overlap.
If you use both c and alpha, HP recommends that you also specify the source x- and y- coordinates to be sure
that the system can distinguish the purpose of each parameter.
DIMGROB_P, DIMGROB
Syntax: DIMGROB_P(G, w, h, [color]) or DIMGROB_P(G, list)
Syntax: DIMGROB(G, w, h, [color]) or DIMGROB(G, list)
Sets the dimensions of GROB G to w × h. Initializes the graphic G with color or with the graphic data provided
by the list variable. If the graphic is initialized using graphic data, then list is a list of integers. Each integer, as
seen in base 16, describes one color every 16 bits.
Colors are in A1R5G5B5 format (that is,1 bit for the alpha channel, and 5 bits for R, G, and B).
FILLPOLY_P, FILLPOLY
Syntax: FILLPOLY_P([G],{(x1, y1), (x2, y2),…(xn, yn)}, Color, [Alpha])
Syntax: FILLPOLY([G],{(x1, y1), (x2, y2),…(xn, yn)}, Color, [Alpha])
For the polygon dened by the list of points, lls the polygon with the color dened by the RGB number Color.
If Alpha is provided as an integer between 0 and 255 inclusive, the polygon is drawn with the corresponding
594 Chapter 28 Programming in HP PPL
Przeglądanie stron 641
1 2 ... 637 638 639 640 641 642 643 644 645 646 647 ... 700 701

Komentarze do niniejszej Instrukcji

Brak uwag