Next Previous Up Top Contents Index

6.6 DUIM-Graphics Module

draw-triangle

Generic function

Summary

Draws a triangle between the specified points.

Signature

draw-triangle drawable x1 y1 x2 y2 x3 y3 #key filled? => ()
draw-triangle* drawable p1 p2 p3 #key filled? => ()

Arguments

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

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

The following arguments are specific to draw-triangle.

x1
An instance of type <real>.

y1
An instance of type <real>.

x2
An instance of type <real>.

y2
An instance of type <real>.

x3
An instance of type <real>.

y3
An instance of type <real>.

The following arguments are specific to draw-triangle*.

p1
An instance of type <transform>.

p2
An instance of type <transform>.

p3
An instance of type <transform>.

Values

None.

Library

duim-graphics

Module

duim-graphics

Description

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

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

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


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index