Behind The Scenes Look At Colors (StumpWM Manual)

### 15.1 Behind The Scenes Look At Colors ¶

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 (current-screen))

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

Additionally, both the normal and bright versions of a color can be specified by using a list of the form `(normal-color bright-color)`, for instance:

    (setf *colors* (append *colors*
                           (list (list "PeachPuff" "PapayaWhip")
                                 (list "DarkGoldenRod3" "PaleGoldenrod"))))
    (update-color-map (current-screen))

Function: parse-color-string string ¶

  Parse a color-coded string into a list of strings and color modifiers

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.