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

NextPrevUpTopContentsIndex

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. If file is not given, read-color-db uses the default color definitions file in the LispWorks library.

Values

color-database

A database definition.

Description

This reads color definitions from the given file (a filename or pathname). The returned data structure can be passed to color:load-color-database. 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.

See also

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


CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017

NextPrevUpTopContentsIndex