7.2 Using color in the Window Tool Kit
> (setq window (make-window :width 100 :height 100 :depth (display-depth))) #<Window 100x100x8 at (0,0) F665FB>If you have registered the primary colors, you should be able to see a magenta rectangle in the window.
> (draw-rectangle window 10 10 :width 30 :height 20 :foreground "MAGENTA") NIL
You can explore more complex ways of using registered colors by looking at the code in Section 7.4 on page 77.
Generated with Harlequin WebMaker