LispWorks CAPI Reference Manual > 3 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


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex