
7 Color in the Window Tool Kit
windows-available-p returns a non-nil value.root-viewport returns a non-nil value.windows-available-p, which is the depth of your display, is greater than 1 or if color-available-p returns a non-nil value.'BLACK and'WHITE are the only colors that are automatically registered upon initialization. Failure to register colors is the most common reason for not seeing color. To see which colors are registered, invoke the function print-color-registry. To register primary colors automatically, use the functionsetup-color-library.display-depth? If the window that you are sending output to is of depth 1, you cannot see any colors in that window. By default, all windows and bitmaps are of depth 1, and color output to depth 1 bitmaps shows as'BLACK. To find the depth of your window, use the functionbitmap-depth with the window as an argument.

Generated with Harlequin WebMaker