21static int cmp_double(
const void *
aa,
const void *
bb)
26 return *a > *
b ? 1 : *a < *
b ? -1 : 0;
29static void fill(
double x0,
double x1,
double y)
55 *p++ =
png.current_color;
58static void line(
const struct vertex *p,
int n,
double y)
65 for (i = 1; i < n; i++) {
96 for (i = 0; i + 1 <
num_x; i += 2)
97 fill(
xs[i],
xs[i + 1],
y);
100static void poly(
const struct vertex *p,
int n)
110 for (i = 1; i < n; i++) {
118 if (
y0 >
png.clip_bot || y1 <
png.clip_top)
121 if (
y0 <
png.clip_top)
124 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.