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)
32 int yi = (int)floor(y);
33 int xi0 = (int)floor(x0 + 0.5);
34 int xi1 = (int)floor(x1 + 0.5);
55 for (x = xi0;
x < xi1;
x++)
59static void line(
const struct vertex *p,
int n,
double y)
66 for (i = 1; i < n; i++) {
101static void poly(
const struct vertex *
p,
int n)
111 for (
i = 1;
i <
n;
i++) {
137 if (
p->vertices[
p->count - 1].mode !=
P_CLOSE)
140 poly(
p->vertices,
p->count);
void path_close(struct path *p)
void png_polygon(struct path *p)
Draw polygon.
GRASS png display driver - header file.