All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

draw-line Function

Summary

Draws a line between two given points.

Package

graphics-ports

Signature

draw-line port from-x from-y to-x to-y &rest args

Arguments
port
A graphics port.
from-x
A real number.
from-y
A real number.
to-x
A real number.
to-y
A real number.
args
graphics-state parameters passed as keyword arguments.
Description

The function draw-line draws a line from (from-x from-y) to (to-x to-y).

The transform, foreground, background, operation, pattern, thickness, scale-thickness, dashed, dash, line-end-style, mask, shape-mode and compositing-mode from port's graphics-state are all used, unless overridden in args. Additionally on X11/Motif only, stipple is used.

See also

draw-lines
graphics-state
13 Drawing - Graphics Ports


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44