DrawingContext.polygon

Draw a polygon.

The arguments are a sequence of 2 or more points. If the last point is not the same as the first, the polygon is closed by drawing a line from the last point to the first.

class DrawingContext
void
polygon
(
size_t[] points...
)
in { assert (points.length % 2 == 0, "polygon needs an even number of arguments, " ~ "each x coordinate needs a coresponding y coordinate."); }

Meta