All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

draw-polygon

Function
Summary

Draws a polygon.

Package

graphics-ports

Signature

draw-polygon port points &rest args &key filled closed fill-rule

Arguments

port

A graphics port.

points

A description sequence.

filled

A boolean.

closed

A boolean.

fill-rule

A keyword.

args

graphics-state parameters passed as keyword arguments.

Description

The draw-polygon function draws a polygon using alternating x and y values in the points argument as the vertices. When closed is non- nil the edge from the last vertex to the first to be drawn. When filled is non- nil a filled, closed polygon is drawn; the closed argument is ignored if filled is non- nil .

transform, foreground, background, operation, thickness, scale-thickness, dashed, dash, line-end-style, line-joint-style , mask , shape-mode and compositing-mode from port 's graphics-state are all used, unless overridden in args . Additionally on Unix only, stipple and pattern are used.

fill-rule specifies how overlapping regions are filled. Possible values are :even-odd and :winding .

See also

draw-polygons
graphics-state


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex