Page 101 Table of Contents Index Page 103
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

Note that the CLIM specification does not specify more complex shapes such as cubic splines
and Bezier curves. These are suitable candidates for extensions to CLIM.

12.5.1 Basic Drawing Functions

=> draw-point sheet point &key ink clipping-region transformation line-style line-thickness line-
unit
[Function]
=> draw-point* sheet x y &key ink clipping-region transformation line-style line-thickness line-unit
[Function]
These functions (structured and spread arguments, respectively) draw a single point on the sheet
sheet at the point point (or the position (x;y)).

The unit and thickness components of the current line style (see Chapter 10) affect the drawing
of the point by controlling the size on the display device of the "blob" that is used to render the
point.

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

These functions exist as equivalents to

(map nil #`(lambda (point) (draw-point sheet point)) point-seq)

and
 (do ((i 0 (+ i 2)))
     ((= i (length coord-seq)))
   (draw-point* sheet (elt coord-seq i) (elt coord-seq (+ i 1))))
for convenience and efficiency.

=> draw-line sheet point1 point2 &key ink clipping-region transformation line-style line-thickness
line-unit line-dashes line-cap-shape
[Function]
=> draw-line* sheet x1 y1 x2 y2 &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 line segment on the
sheet sheet from the point point1 to point2 (or from the position (x1,y1) to (x2,y2)).


Page 101 Table of Contents Index Page 103
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