Gobligine/doc/graphics/palette.html

89 lines
2.9 KiB
HTML
Raw Normal View History

2003-05-11 16:10:38 -06:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--
---- $Id$
---- (c) Copyright 2003 by Nehal Mistry
2003-07-03 10:08:07 -06:00
---- This program is free software; you can redistribute it and/or modify
2003-05-11 16:10:38 -06:00
---- it under the terms of the GNU General Public License as published by
---- the Free Software Foundation; only version 2 of the License.
2003-07-03 10:08:07 -06:00
----
---- This program is distributed in the hope that it will be useful,
2003-05-11 16:10:38 -06:00
---- but WITHOUT ANY WARRANTY; without even the implied warranty of
---- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
---- GNU General Public License for more details.
2003-07-03 10:08:07 -06:00
----
---- You should have received a copy of the GNU General Public License
---- along with this program; if not, write to the Free Software
---- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
---- 02111-1307, USA.
2003-05-11 16:10:38 -06:00
-->
2003-07-03 09:35:45 -06:00
<title>Stratagus Palette Documentation</title>
2003-05-11 16:10:38 -06:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
2003-07-03 09:35:45 -06:00
<h1>Stratagus Palette Documentation</h1>
2003-05-11 16:10:38 -06:00
<hr>
<h2>General Palette</h2>
2003-07-03 09:35:45 -06:00
Stratagus graphics use a 256 color palette. Although the palette may
2003-05-11 16:10:38 -06:00
be different for all images, it is recommended to use a shared one
to save memory.<p>
To see color indices, open the 'Indexed Palette' dialog in gimp.<p>
Some colors are fixed for specific usage as follows:<p>
<ul>
<li>0 : General background color, will be transparent in the game.
<li>38-47 : Water Cycling.
<li>240-244 : Icon Cycling.
<li>205-207 : Building Cycling.
<li>208-211 : These are the player colors, going from lightest to
darkest and will be replaced depending on the player color.
<li>253 : Reserved for editor, should NOT be used in any image.
<li>255 : General background color, will be transparent in the game.
<li>The remaining colors may be used as regular colors
</ul>
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.<p>
<h2>Global Palette</h2>
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:<p>
<ul>
<li>0 : Black
<li>149 : Dark Green
<li>206 : Blue
<li>246 : White
<li>247 : NPC
<li>248 : Gray
<li>249 : Red
<li>250 : Green
<li>251 : Yellow
<li>252 : Blinking Red
<li>253 : Violet
</ul>
2003-07-03 09:35:45 -06:00
A sample palette, <a href="stratagus.gimp">stratagus.gimp</a>,
2003-05-11 16:10:38 -06:00
is included. If unsure please use this.<p>
<hr>
2003-07-03 09:35:45 -06:00
(C) Copyright 1998-2003 by The <a href="http://stratagus.sf.net">Stratagus</a> Project
2003-05-11 16:10:38 -06:00
under the <a href="gpl.html">GNU General Public License</a>.<br>
All trademarks and copyrights on this page are owned by their respective owners.<br>
</body>
</html>