default-palette-vector

Generic Function

Package: common-graphics

Arguments: system

Returns the default-palette-vector of system. The current system is the value of *system*. This is a color vector shared by the texture-infos of many Allegro pixmaps for efficiency. It contains the following sixteen colors (see white, which links to the other colors):

0 black
1 dark-red
2 dark-green
3 dark-yellow
4 dark-blue
5 dark-magenta
6 dark-cyan
7 light-gray
8 gray
9 red
10 green
11 yellow
12 blue
13 magenta
14 cyan
15 white

An application pixmap that uses these 16 colors in this order could use this color vector in the colors slot of the texture-info used with the pixmap in order to reduce the total number of color vectors needed by the application. Pixmap-creating programs such as the Paint applet may create pixmaps that use this color order or a similar one that could be edited to this one. An additional advantage of using default-palette-vector is that Allegro automatically changes the vector's gray entry to the system-edge-shadow-color, the light-gray entry to the system-dialog-background-color, and the white entry to the system-background-color. This means that button pixmaps using this color vector will automatically appear in the custom colors that the end user has set up in the Windows Control Panel.

default-palette-vector is a property of the system class.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.