Page 102 Table of Contents Index Page 104
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 12. GRAPHICS

The current line style (see Chapter 10) affects the drawing of the line in the obvious way, except
that the joint shape has no effect. Dashed lines start dashing at point1.

=> draw-lines sheet point-seq &key ink clipping-region transformation line-style line-thickness line-
unit line-dashes line-cap-shape
[Function]
=> draw-lines* sheet coord-seq &key ink clipping-region transformation line-style line-thickness
line-unit line-dashes line-cap-shape
[Function]
These functions (structured and spread arguments, respectively) draw a set of disconnected line
segments. point-seq is a sequence of point objects; coord-seq is a sequence of coordinate pairs. It
is an error if coord-seq does not contain an even number of elements.

These functions are equivalent to
  (do ((i 0 (+ i 2)))
     ((= i (length point-seq)))
   (draw-line sheet (elt point-seq i) (elt point-seq (1+ i))))
and
  (do ((i 0 (+ i 4)))
     ((= i (length coord-seq)))
   (draw-line* sheet (elt coord-seq i) (elt coord-seq (+ i 1))
   (elt coord-seq (+ i 2)) (elt coord-seq (+ i 3))))
=> draw-polygon sheet point-seq &key (filled t) (closed t) ink clipping-region transformation line-
style line-thickness line-unit line-dashes line-joint-shape line-cap-shape
[Function]
=> draw-polygon* sheet coord-seq &key (filled t) (closed t) ink clipping-region transformation line-
style line-thickness line-unit line-dashes line-joint-shape line-cap-shape
[Function]
Draws a polygon or polyline on the sheet sheet. When filled is false, this draws a set of connected
lines, otherwise it draws a filled polygon. If closed is true (the default) and filled is false, it ensures
that a segment is drawn that connects the ending point of the last segment to the starting point
of the first segment. The current line style (see Chapter 10) affects the drawing of unfilled
polygons in the obvious way. The cap shape affects only the "open" vertices in the case when
closed is false. Dashed lines start dashing at the starting point of the first segment, and may or
may not continue dashing across vertices, depending on the window system.

point-seq is a sequence of point objects; coord-seq is a sequence of coordinate pairs. It is an error
if coord-seq does not contain an even number of elements.

If filled is true, a closed polygon is drawn and filled in. In this case, closed is assumed to be true
as well.

=> draw-rectangle* sheet x1 y1 x2 y2 &key (filled t) ink clipping-region transformation line-style
line-thickness line-unit line-dashes line-joint-shape
[Function]


Page 102 Table of Contents Index Page 104
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E