Next Previous Up Top Contents Index

6.6 DUIM-Graphics Module

draw-regular-polygon

Generic function

Summary

Draws a regular polygon that touches the specified points, and has the specified number of sides.

Signature

draw-regular-polygon drawable x1 y1 x2 y2 nsides #key handedness closed? filled? => ()
draw-regular-polygon* drawable point1 point2 nsides #key handedness closed? filled? => ()

Arguments

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

nsides
An instance of type <integer>.

handedness
Default value: #"left".

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

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

The following arguments are specific to draw-regular-polygon.

x1
An instance of type <real>.

y1
An instance of type <real>.

x2
An instance of type <real>.

y2
An instance of type <real>.

The following arguments are specific to draw-regular-polygon*.

point1
An instance of type <transform>.

point2
An instance of type <transform>.

Values

None.

Library

duim-graphics

Module

duim-graphics

Description

Draws a regular polygon on drawable, using the current pen, that touches the specified points, and has the specified number of sides. Dashed lines start dashing at the starting point of the first segment.

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

The function draw-regular-polygon* is identical to draw-regular-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-polygon, page 428

draw-rectangle, page 430

draw-triangle, page 437


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index