<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <!-- ---- (c) Copyright 2003-2011 by Nehal Mistry and Pali Rohár ---- This program is free software; you can redistribute it and/or modify ---- it under the terms of the GNU General Public License as published by ---- the Free Software Foundation; only version 2 of the License. ---- ---- This program is distributed in the hope that it will be useful, ---- 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. ---- ---- 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. --> <title>Stratagus Palette Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <pre width=80> _________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine </pre> <hr> <h1>Stratagus Palette Documentation</h1> <hr> Stratagus graphics use a 256 color palette.<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>38-47 : Water Cycling. Or any other range as defined in the scripts with SetColorWaterCycleStart and SetColorWaterCycleEnd. <li>240-244 : Icon Cycling. Or any other range as defined in the scripts with SetColorIconCycleStart and SetColorIconCycleEnd. <li>205-207 : Building Cycling. Or any other range as defined in the scripts with SetColorBuildingCycleStart and SetColorBuildingCycleEnd. <li>208-211 : These are the player colors, going from lightest to darkest and will be replaced depending on the player color. <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 "SetColorWaterCycleStart(38)" line you can set the start for the water cycling. Color cycling can be disabled or enabled with "SetColorCycleAll".<p> A sample palette, <a href="stratagus.gimp">stratagus.gimp</a>, is included.<p> <hr> (C) Copyright 1998-2011 by The <a href="https://launchpad.net/stratagus">Stratagus</a> Project 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>