[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

12.1 Derrière la scène regarde les couleurs

Color indexes are stored in *colors* as a list. The default list of colors leave 2 slots for the user to choose. If you'd like to use ‘Papaya Whip’ and ‘Dark Golden Rod 3’ you might eval the following:

 
(setf *colors* (append *colors*
                       (list "PapayaWhip"
                             "DarkGoldenRod3")))
(update-color-map)

Of course, you can change all the colors if you like.

Function: parse-color-string STRING

parse a color coded string into a list of strings and color codes

Function: uncolorify STRING

Remove any color markup in STRING

Variable: *colors*

Eight colors by default. You can redefine these to whatever you like and then call (update-color-map).

Function: update-color-map SCREEN

Read *colors* and cache their pixel colors for use when rendering colored text.


Ce document a été généré par Eric Reinbold le 9 Octobre 2008 en utilisant texi2html 1.78.