renderUneven(g, from, to, width, c);
}
public static void drawPolygon(Graphics g, Polygon p, Pen pen, Coords c)
{
FEPoint from = new FEPoint();
FEPoint to = new FEPoint();
for (int i = 1; i < p.npoints; i++)
{
from.setX(p.xpoints[i - 1]);
from.setY(p.ypoints[i - 1]);
to.setX(p.xpoints[i]);
to.setY(p.ypoints[i]);
pen.drawStroke(g, from, to, c);
}
from.setX(p.xpoints[0]);
from.setY(p.ypoints[0]);
to.setX(p.xpoints[p.npoints - 1]);
to.setY(p.ypoints[p.npoints - 1]);
pen.drawStroke(g, from, to, c);
}