22static int cmp_double(
const void *
aa,
const void *
bb)
27 return *a > *
b ? 1 : *a < *
b ? -1 : 0;
30static void fill(
double x0,
double x1,
double y)
56 *p++ =
png.current_color;
59static void line(
const struct vertex *p,
int n,
double y)
66 for (i = 1; i < n; i++) {
97 for (i = 0; i + 1 <
num_x; i += 2)
98 fill(
xs[i],
xs[i + 1],
y);
101static void poly(
const struct vertex *p,
int n)
111 for (i = 1; i < n; i++) {
119 if (
y0 >
png.clip_bot || y1 <
png.clip_top)
122 if (
y0 <
png.clip_top)
125 if (y1 >
png.clip_bot)
void path_close(struct path *p)
void png_polygon(struct path *p)
Draw polygon.
GRASS png display driver - header file.