All Manuals > CAPI User Guide and Reference Manual > 24 COLOR Reference Entries

read-color-db Function

Summary

Reads the color definitions contained in a file.

Package

color

Signature

read-color-db &optional file => color-database

Arguments
file
A filename or pathname containing the color definitions to be read.
Values
color-database
A database definition.
Description

The function read-color-db reads color definitions from file. file defaults to the default color definitions file in the LispWorks library.

The format of the file is:

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

Each line contains a color definition which consists of a color-spec and a name. The names are converted to uppercase and interned in the keyword package. Whitespace in names is preserved.

color-database can be passed to load-color-database.

See also

load-color-database
*color-database*
delete-color-translation
15 The Color System


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10