# Stratagus Palette Documentation

## General Palette

Stratagus graphics use a 256 color palette. Although the palette may be different for all images, it is recommended to use a shared one to save memory.

To see color indices, open the 'Indexed Palette' dialog in gimp.

Some colors are fixed for specific usage as follows:

- 0 : General background color, will be transparent in the game.
- 38-47 : Water Cycling.
- 240-244 : Icon Cycling.
- 205-207 : Building Cycling.
- 208-211 : These are the player colors, going from lightest to darkest and will be replaced depending on the player color.
- 253 : Reserved for editor, should NOT be used in any image.
- 255 : General background color, will be transparent in the game.
- The remaining colors may be used as regular colors

NOTE: the cycling applies to all images, eg, the building cycling occurs for icons as well. The color cycling can be configured from ccl eg, by editing the "(set-color-water-cycle-start! 38)" line you can set the start for the water cycling.

## Global Palette

The tileset palette is used as a general palette for purposes such as line-drawing. The following color indices are used in addition to the fixed colors described above and should be taken into account when creating a tileset:

- 0 : Black
- 149 : Dark Green
- 206 : Blue
- 246 : White
- 247 : NPC
- 248 : Gray
- 249 : Red
- 250 : Green
- 251 : Yellow
- 252 : Blinking Red
- 253 : Violet

A sample palette, stratagus.gimp, is included. If unsure please use this.

(C) Copyright 1998-2003 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.