LispWorks 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

General graphics port drawing 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 and mask from the port 's graphics state (see make-graphics-state) are all used. Additionally on Unix only, stipple, pattern , mask-x, mask-y are used. The fill-rule specifies how overlapping regions are filled. Possible values are :even-odd and :winding .

See also

draw-polygons


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex