NextPrevUpTopContentsIndex

13.6 Loading the color database

You can load new color definitions into the color database using read-color-db and load-color-database.

Given a color definition file my-colors.db of lines like these:

#(:RGB 1.0s0 0.980391s0 0.980391s0)     snow
#(:RGB 0.972548s0 0.972548s0 1.0s0)     GhostWhite

call

(load-color-database (read-color-db "my-colors.db"))

To clear the color database use the form:

(setf *color-database* (make-color-db))

Warning: You should do this before starting Common LispWorks (that is, before env:start-environment is called) and be sure to load new color definitions for all the colors used in the environment when you do start it. Those colors are determined from the config/colors.db file.

You can remove a color database entry with delete-color-translation .


LispWorks CAPI User Guide (Macintosh version) - 17 Mar 2008

NextPrevUpTopContentsIndex