[previous] [up] [next]     [index]
Next: draw-rectangle Up: dc<> Previous: draw-point

draw-polygon

Draws and paints a polygon from a list of points. The current pen is used for drawing the outline, and the current brush for filling the shape.

If both the pen and brush are non-transparent, the polygon is filled with the brush before the outline is drawn with the pen. The filling and outline meet so that no space is left between them, but the precise overlap between the filling and outline is platform- and shape-specific. Thus, the regions drawn by the brush and pen may partially overlap.



PLT