blob: 4db5d117d034d02f35027a5f44d83d78375fa946 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <gio.h>
# GFILL -- Fill area. Fill the area defined by the polygon (X[i],Y[i]) in the
# indicated style.
procedure gfill (gp, x, y, npts, style)
pointer gp # graphics descriptor
real x[ARB], y[ARB] # polygon
int npts # npts in polygon
int style # style for area fill
pointer ap
begin
call gpl_flush()
ap = GP_FAAP(gp)
if (style != FA_STYLE(ap) || FA_STATE(ap) != FIXED) {
FA_STYLE(ap) = style
call gki_faset (GP_FD(gp), ap)
FA_STATE(ap) = FIXED
}
call gpl_settype (gp, FILLAREA)
call gpline (gp, x, y, npts)
call gpl_settype (gp, POLYLINE)
end
|