The LispWorks Color System allows you to manipulate colors, which are used as the color values in Graphics Ports and CAPI functions. For example, to draw a string in red, you call:
(gp:draw-string pane string x y :foreground :red)
The value of :foreground
(:red
above) must be a color specification that is recognized by the Color System (:red
is recognized because it is part of the color database that is pre-loaded)..
In the LispWorks Color System, colors can be represented in two ways:
The LispWorks Color System allows you to:
The Color System symbols are exported from the COLOR package, and all symbols mentioned in this chapter are assumed to be external to this package unless otherwise stated.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:24