diff --git a/morphpoly.c b/morphpoly.c index 05670e8..20b68a0 100644 --- a/morphpoly.c +++ b/morphpoly.c @@ -183,12 +183,12 @@ void drawpoly(const int nsides, const double xc, const double yc, const struct V { int i; - openlinesequence(xc + vertex[0].x, yc + vertex[0].y); + moveto(xc + vertex[0].x, yc + vertex[0].y); for (i = 1; i < nsides; i++) { - linesegmentto(xc + vertex[i].x, yc + vertex[i].y); + lineto(xc + vertex[i].x, yc + vertex[i].y); // circle(xc + vertex[i].x, yc + vertex[i].y, 20.0); } - closelinesequence(1); + lineto(xc + vertex[0].x, yc + vertex[0].y); } diff --git a/sutpent.c b/sutpent.c index abea858..fa3d358 100644 --- a/sutpent.c +++ b/sutpent.c @@ -145,10 +145,10 @@ void drawpoly(const int nsides, const struct Vertex vertex[]) { int i; - openlinesequence(vertex[0].x, vertex[0].y); + moveto(vertex[0].x, vertex[0].y); for (i = 1; i < nsides; i++) - linesegmentto(vertex[i].x, vertex[i].y); + lineto(vertex[i].x, vertex[i].y); - closelinesequence(1); + lineto(vertex[0].x, vertex[0].y); }