Next Previous Up Top Contents Index

6.6 DUIM-Graphics Module

draw-polygon

Generic function

Summary

Draws a polygon joining the specified points.

Signature

draw-polygon drawable coord-seq #key closed? filled? => ()
draw-polygon* drawable points #key closed? filled? => ()

Arguments

drawable
An instance of type type-union(<sheet>, <medium>).

closed?
An instance of type <boolean>. Default value: #t.

filled?
An instance of type <boolean>. Default value: #t.

The following argument is specific to draw-polygon.

coord-seq
An instance of type limited(<sequence>, of: <coordinate>).

The following argument is specific to draw-polygon*.

points
An instance of type limited(<sequence>, of: <point>).

Values

None.

Library

duim-graphics

Module

duim-graphics

Description

Draws a polygon on drawable joining the specified points, using the current pen. Dashed lines start dashing at the starting point of the first segment.

If closed? is #t, then the polygon is closed, that is, a line is drawn from the last point in the sequence back to the first.

If filled? is #t then the polygon will be filled, using the current brush.

The function draw-polygon* is identical to draw-polygon, except that it passes composite objects, rather than separate coordinates, in its arguments. You should be aware that using this function may lead to a loss of performance.

See also

draw-rectangle, page 430

draw-regular-polygon, page 433

draw-triangle, page 437


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index