7 Color in the Window Tool Kit
'BLACK, and the default background value is usually
More complicated uses of color can require complex transformations between bitmaps and direct manipulation of the color table. However, the following sections give directions for the most common uses of color.
The first step in using color is to invoke the Window Tool Kit on a display that supports both graphics and color. If you do not know whether your display supports graphics and color, you can use Lisp to find out.
Invoke the function
windows-available-p. If your display supports graphics, this function returns three values: the width, height, and depth of the display. If the depth of the current display is larger than 1, the display also supports color operations. The function
display-depth also returns the depth of the current display.
By default, only the colors
'WHITE are registered. You must register any other colors that you want to use; the function
setup-color-library registers colors for you.
Generated with Harlequin WebMaker