Page 127 | Table of Contents | Index | Page 129 |
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 |
(defun draw-pattern* (sheet pattern x y &key clipping-region transformation) (check-type pattern pattern) (let ((width (pattern-width pattern)) (height (pattern-height pattern))) (if (or clipping-region transformation) (with-drawing-options (sheet :clipping-region clipping-region :transformation transformation) (draw-rectangle* sheet x y (+ x width) (+ y height) :filled t :ink pattern)) (draw-rectangle* sheet x y (+ x width) (+ y height) :filled t :ink pattern))))
Painting a gray or colored wash over a display. Specify a translucent design as the
ink, such as :ink (compose-in +black+ (make-opacity 0.25)), :ink (compose-in +red+
(make-opacity 0.1)), or :ink (compose-in +foreground-ink+ (make-opacity 0.75)). The
last example can be abbreviated as :ink (make-opacity 0.75). On a non-color, non-grayscale
display this will usually turn into a stipple.
Drawing a faded but opaque version of the foreground color. Specify :ink (compose-
over (compose-in +foreground-ink+ (make-opacity 0.25)) +background-ink+) to draw
at 25% of the normal contrast. On a non-color, non-grayscale display this will probably turn
into a stipple.
Page 127 | Table of Contents | Index | Page 129 |
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 |