Page 77 Table of Contents Index Page 79
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 10. DRAWING OPTIONS

Returns the foreground and background inks (which are designs) for the medium medium, re-
spectively. The foreground ink is the default ink used when drawing. The background ink is the
ink used when erasing. See Chapter 13 for a more complete description of designs.

Any indirect inks are resolved against the foreground and background at the time a design is
rendered.

=> (setf medium-foreground) design medium [Generic Function]
=> (setf medium-background) design medium [Generic Function]
Sets the foreground and background ink, respectively, for the medium medium to design. You
may not set medium-foreground or medium-background to an indirect ink.

design is an unbounded design. If the background design is not completely opaque at all points,
the consequences are unspecified.

Changing the foreground or background of a sheet that supports output recording causes the
contents of the stream's viewport to be erased and redrawn using the new foreground and
background.

=> medium-ink medium [Generic Function]
The current drawing ink for the medium medium, which can be any design. The drawing
functions draw with the color and pattern that this specifies. See Chapter 13 for a more complete
description of inks. The :ink drawing option temporarily changes the value of medium-ink.

=> (setf medium-ink) design medium [Generic Function]
Sets the current drawing ink for the medium medium to design. design is as for medium-
foreground
, and may be an indirect ink as well.

=> medium-transformation medium [Generic Function]
The current user transformation for the medium medium. This transformation is used to
transform the coordinates supplied as arguments to drawing functions to the coordinate sys-
tem of the drawing plane. See Chapter 5 for a complete description of transformations. The
:transformation drawing option temporarily changes the value of medium-transformation.

=> (setf medium-transformation) transformation medium [Generic Function]
Sets the current user transformation for the medium medium to the transformation transforma-
tion
.

=> medium-clipping-region medium [Generic Function]
The current clipping region for the medium medium. The drawing functions do not affect the
drawing plane outside this region. The :clipping-region drawing option temporarily changes
the value of medium-clipping-region.

The clipping region is expressed in user coordinates.


Page 77 Table of Contents Index Page 79
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