Next Previous Up Top Contents Index

6.6 DUIM-Graphics Module

curve-to

Generic function

Summary

Draws a curve through three specified points in the current path on the specified drawable.

Signature

curve-to drawable x1 y1 x2 y2 x3 y3 => ()
curve-to* drawable point1 point2 point3 => ()

Arguments

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

The following arguments are specific to curve-to.

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 curve-to*.

point1
An instance of type <transform>.

point2
An instance of type <transform>.

point3
An instance of type <transform>.

Values

None.

Library

duim-graphics

Module

duim-graphics

Description

Draws a curve in the current path on drawable starting from the current position, and passing through (x1,y1), (x2, y2), and (x3, y3).

This function is used, in combination with line-to, move-to, and arc-to, to define a path. The function start-path should be used to start the definition of the path, and end-path can be used to finish the definition.

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

arc-to, page 404

draw-bezier-curve, page 416

draw-line, page 421

line-to, page 440

move-to, page 442


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index