Next Previous Up Top Contents Index

6.6 DUIM-Graphics Module

draw-line

Generic function

Summary

Draws a line between the specified points.

Signature

draw-line drawable x1 y1 x2 y2 => ()
draw-line* drawable point1 point2 => ()

Arguments

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

The following arguments are specific to draw-line.

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-line*.

point1
An instance of type <transform>.

point2
An instance of type <transform>.

Values

None.

Library

duim-graphics

Module

duim-graphics

Description

Draws a line on drawable between (x1, y1) and (x2,y2), using the current pen. Dashed lines start dashing from the first point.

The function draw-line* is identical to draw-line, 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

curve-to, page 411

draw-arrow, page 414

draw-bezier-curve, page 416

draw-lines, page 423

draw-point, page 426

line-to, page 440


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index