
B–61863E–1/06
9. GRAPHICS DISPLAYPMC LIBRARY
247
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_paint
[Description]
Paints an area in a closed curve contained in the information
displayed in graphics format. This function paints the area using the
color or brightness most recently selected for the boundary.
(PMC-SC/SC3/SC4 and 16i/18i/21i)
In the PMC-NB/NB2/15i–A, the area is filed with the color or
brightness specified with this function. A closed loop is drawn and the
area surrounded by the loop is filled with the same color or brightness.
[Format]
ret = pl_paint(P1) ;
short ret ;
short *P1 ;
[Input]
*P1 Display information
X
Y
PC
[Specifying the color or brightness of the boundary of the area to be
painted (PC)]
Code Color Brightness
0H
1H
2H
3H
4H
5H
6H
7H
8H
Red
Green
Yellow
Blue
Pink
Light Blue
White
Low
High
0 : Paints the areas in closed curves which have the color or
brightness last specified for the graphics display.
(PMC-SC/SC3/SC4 and 16i/18i/21i)
1 to 7 : Paints the areas whose boundaries have the corresponding
color or brightness code.
8 : Paints the overlapping area when two or more curves with
different colors (other than black) intersect with each other.
(PMC-SC/SC3/SC4)
[Output]
______
[Returns]
ret Complete code (–11, –1, 0)
[Remarks]
For the return values, see the section on completion code types.
Areas in closed curves which contain the specified starting point for
drawing are painted.
Painting cannot be specified for an area not enclosed by a curve or for
a point on a closed curve.
When an area is painted, lines contained in the painted area that are
not part of the boundary are erased.
9.9
PAINTING AN AREA
ON THE CRT
GRAPHICS DISPLAY
0
2
4
6
P1
Starting point of drawing (X, Y)
Specifying the color or brightness of the boundary of the
area to be painted