13 static void store_xy(
double x,
double y)
15 int xi = (int)floor(
x);
16 int yi = (int)floor(y);
25 static void swap(
double *a,
double *
b)
33 static void draw_line(
double x1,
double y1,
double x2,
double y2)
38 if (fabs(y1 - y2) > fabs(x1 - x2)) {
47 for (y = floor(y1) + 0.5; y < y2; y++) {
48 x = x1 + (y - y1) * dx / dy;
61 for (
x = floor(x1) + 0.5;
x < x2;
x++) {
62 y = y1 + (
x - x1) * dy / dx;
76 draw_line(x1, y1, x2, y2);
void png_draw_line(double x1, double y1, double x2, double y2)
void path_close(struct path *p)
void path_cont(struct path *p, double x, double y)
void path_move(struct path *p, double x, double y)
GRASS png display driver - header file.
void png_polygon(struct path *)
Draw polygon.