v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing v0.31:Color

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{quality|Exceptional|21:07, 30 March 2011 (UTC)}}{{av}}
 
{{quality|Exceptional|21:07, 30 March 2011 (UTC)}}{{av}}
'''Color''' is used to express various information, from a dwarf's [[profession]] to the natural color of a terrain feature to the material an item is made of.
+
'''Color''' is used to express various information, from a dwarf's {{L|profession}} to the natural color of a terrain feature to the material an item is made of.
  
:* ''If looking for different colors for the game as seen on your computer screen, see [[color schemes]].''
+
:* ''If looking for different colors for the game as seen on your computer screen, see {{L|color schemes}}.''
:* ''If looking for the different colors used to represent different dwarves, see [[Skill#Professions, colors, & skill categories|Skill categories]].)''
+
:* ''If looking for the different colors used to represent different dwarves, see {{L|Skill#Professions, colors, & skill categories|Skill categories}}.)''
:* ''If looking for colors of items listed in the z-stocks menu, see [[Stocks#Color_Code|Stocks]].''
+
:* ''If looking for colors of items listed in the z-stocks menu, see {{L|Stocks#Color_Code|Stocks}}.''
  
  
 
==Wall vs. floor color==
 
==Wall vs. floor color==
[[image:Towercaps-sandy.jpg|thumb|[[Phyllite]] (to the left) has DISPLAY_COLOR:0:7:1 and BASIC_COLOR:7:0.  The [[white sand]] present has DISPLAY_COLOR:7:6:1 and so the actual floor color is 7:1 (white).]]
+
[[image:Towercaps-sandy.jpg|thumb|{{L|Phyllite}} (to the left) has DISPLAY_COLOR:0:7:1 and BASIC_COLOR:7:0.  The {{L|white sand}} present has DISPLAY_COLOR:7:6:1 and so the actual floor color is 7:1 (white).]]
  
While the foreground, background and brightness shown in the [[Material definition token|RAW]] files will be applied to [[wall]]s, the [[stone|mineral]]'s "secondary" color will end up different.  Here is how it works:
+
While the foreground, background and brightness shown in the {{L|Material definition token|RAW}} files will be applied to {{L|wall}}s, the {{L|stone|mineral}}'s "secondary" color will end up different.  Here is how it works:
 
* If the BASIC_COLOR tag is specified, it will use that color.  Note that the BASIC_COLOR tag only has foreground and brightness as arguments.
 
* If the BASIC_COLOR tag is specified, it will use that color.  Note that the BASIC_COLOR tag only has foreground and brightness as arguments.
 
* If BASIC_COLOR is left out:
 
* If BASIC_COLOR is left out:
 
** The background color is forced to 0 (effectively stripping it).
 
** The background color is forced to 0 (effectively stripping it).
 
** If the foreground color is 0, the game will display it as dark grey, color 8 (in other words, color 0 with brightness 1).
 
** If the foreground color is 0, the game will display it as dark grey, color 8 (in other words, color 0 with brightness 1).
This is effective for [[stairs]], [[floor]]s, [[ramp]]s, and [[construction]]s (in the case of stone).  When stone is [[engraving|engraved]], it uses the material's TILE_COLOR (which is the same as the DISPLAY_COLOR unless overridden).
+
This is effective for {{L|stairs}}, {{L|floor}}s, {{L|ramp}}s, and {{L|construction}}s (in the case of stone).  When stone is {{L|engraving|engraved}}, it uses the material's TILE_COLOR (which is the same as the DISPLAY_COLOR unless overridden).
  
 
== Modding color ==
 
== Modding color ==
Line 114: Line 114:
 
|}
 
|}
 
|}
 
|}
::::''(* See [[color scheme]] for information about how to change the actual various colors as displayed.)''
+
::::''(* See {{L|color scheme}} for information about how to change the actual various colors as displayed.)''
  
  
Line 140: Line 140:
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|7:1}} White
 
|{{Raw Tile|•|7:1}} White
|[[Alunite]], [[Borax]], [[Cryolite]], [[Marcasite]], [[Periclase]], [[Quartzite]], [[Rock salt]], [[Talc]], [[Alabaster]], [[Calcite]], [[Chalk]], [[Dolomite]], [[Limestone]], [[Marble]], [[Satinspar]], [[Selenite]]
+
|{{L|Alunite}}, {{L|Borax}}, {{L|Cryolite}}, {{L|Marcasite}}, {{L|Periclase}}, {{L|Quartzite}}, {{L|Rock salt}}, {{L|Talc}}, {{L|Alabaster}}, {{L|Calcite}}, {{L|Chalk}}, {{L|Dolomite}}, {{L|Limestone}}, {{L|Marble}}, {{L|Satinspar}}, {{L|Selenite}}
|[[Galena]], [[Horn silver]], [[Native aluminum]], [[Native platinum]], [[Native silver]]
+
|{{L|Galena}}, {{L|Horn silver}}, {{L|Native aluminum}}, {{L|Native platinum}}, {{L|Native silver}}
|[[Silver]], [[Platinum]], [[Aluminum]], [[Fine pewter]], [[Nickel silver]], [[Sterling silver]]
+
|{{L|Silver}}, {{L|Platinum}}, {{l|Aluminum}}, {{l|Fine pewter}}, {{l|Nickel silver}}, {{l|Sterling silver}}
|[[Crystal glass]], [[Feather tree]], [[Tower-cap]]
+
|{{L|Crystal glass}}, {{L|Feather tree}}, {{L|Tower-cap}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|7:0}} Light Gray
 
|{{Raw Tile|•|7:0}} Light Gray
|[[Anhydrite]], [[Dacite]], [[Gneiss]], [[Granite]], [[Phyllite]], [[Stibnite]]
+
|{{L|Anhydrite}}, {{L|Dacite}}, {{L|Gneiss}}, {{L|Granite}}, {{L|Phyllite}}, {{L|Stibnite}}
|[[Bismuthinite]]
+
|{{L|Bismuthinite}}
|[[Nickel]], [[Tin]], [[Zinc]], [[Billon]], [[Trifle pewter]]
+
|{{l|Nickel}}, {{l|Tin}}, {{l|Zinc}}, {{l|Billon}}, {{l|Trifle pewter}}
 
|
 
|
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|0:1}} Dark Gray
 
|{{Raw Tile|•|0:1}} Dark Gray
|[[Andesite]], [[Basalt]], [[Claystone]], [[Chromite]], [[Diorite]], [[Gabbro]], [[Graphite]], [[Hornblende]], [[Ilmenite]], [[Jet]], [[Mica]], [[Pyrolusite]], [[Rhyolite]], [[Shale]], [[Slate]], [[Obsidian]]
+
|{{L|Andesite}}, {{L|Basalt}}, {{L|Claystone}}, {{L|Chromite}}, {{L|Diorite}}, {{L|Gabbro}}, {{L|Graphite}}, {{L|Hornblende}}, {{L|Ilmenite}}, {{L|Jet}}, {{L|Mica}}, {{L|Pyrolusite}}, {{L|Rhyolite}}, {{L|Shale}}, {{L|Slate}}, {{L|Obsidian}}
|[[Bituminous coal]], [[Lignite]], [[Magnetite]], [[Sphalerite]], [[Tetrahedrite]]
+
|{{L|Bituminous coal}}, {{L|Lignite}}, {{L|Magnetite}}, {{L|Sphalerite}}, {{L|Tetrahedrite}}
|[[Iron]], [[Steel]], [[Lead]], [[Pig iron]]
+
|{{l|Iron}}, {{l|Steel}}, {{l|Lead}}, {{l|Pig iron}}
|[[Black-cap]]
+
|{{L|Black-cap}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|6:0}} Brown
 
|{{Raw Tile|•|6:0}} Brown
|[[Chert]], [[Conglomerate]], [[Mudstone]], [[Puddingstone]], [[Sandstone]], [[Schist]], [[Siltstone]]
+
|{{L|Chert}}, {{L|Conglomerate}}, {{L|Mudstone}}, {{L|Puddingstone}}, {{L|Sandstone}}, {{L|Schist}}, {{L|Siltstone}}
|[[Cassiterite]], [[Native copper]]
+
|{{L|Cassiterite}}, {{L|Native copper}}
|[[Copper]], [[Bronze]]
+
|{{l|Copper}}, {{l|Bronze}}
|[[Tree|All other aboveground trees]]
+
|{{L|Tree|All other aboveground trees}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|6:1}} Yellow
 
|{{Raw Tile|•|6:1}} Yellow
|[[Brimstone]], [[Orpiment]], [[Orthoclase]], [[Saltpeter]], [[Sylvite]], [[Gypsum]]
+
|{{L|Brimstone}}, {{L|Orpiment}}, {{L|Orthoclase}}, {{L|Saltpeter}}, {{L|Sylvite}}, {{L|Gypsum}}
|[[Limonite]], [[Native gold]]
+
|{{L|Limonite}}, {{L|Native gold}}
|[[Gold]], [[Bismuth bronze]], [[Brass]], [[Electrum]]
+
|{{l|Gold}}, {{l|Bismuth bronze}}, {{l|Brass}}, {{l|Electrum}}
|[[Fungiwood]]
+
|{{L|Fungiwood}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|4:0}} Dark Red
 
|{{Raw Tile|•|4:0}} Dark Red
|[[Bauxite]], [[Kaolinite]]
+
|{{L|Bauxite}}, {{L|Kaolinite}}
|[[Hematite]]
+
|{{L|Hematite}}
 
|
 
|
|[[Blood thorn]]
+
|{{L|Blood thorn}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|4:1}} Red
 
|{{Raw Tile|•|4:1}} Red
|[[Cinnabar]], [[Petrified wood]], [[Realgar]]
+
|{{L|Cinnabar}}, {{L|Petrified wood}}, {{L|Realgar}}
 
|
 
|
 
|
 
|
|[[Goblin-cap]]
+
|{{L|Goblin-cap}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|2:0}} Green
 
|{{Raw Tile|•|2:0}} Green
|[[Olivine]], [[Serpentine]]
+
|{{L|Olivine}}, {{L|Serpentine}}
|[[Malachite]]
+
|{{L|Malachite}}
 
|
 
|
|[[Green glass]]
+
|{{L|Green glass}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|2:1}} Bright Green
 
|{{Raw Tile|•|2:1}} Bright Green
 
|
 
|
|[[Garnierite]]
+
|{{L|Garnierite}}
 
|
 
|
 
|
 
|
Line 196: Line 196:
 
|
 
|
 
|
 
|
|[[Lay pewter]]
+
|{{l|Lay pewter}}
|[[Clear glass]], [[Spore tree]]
+
|{{L|Clear glass}}, {{L|Spore tree}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|3:1}} Light Cyan
 
|{{Raw Tile|•|3:1}} Light Cyan
|[[Microcline]]
+
|{{L|Microcline}}
|[[Raw adamantine]]
+
|{{L|Raw adamantine}}
|[[Adamantine]]
+
|{{l|Adamantine}}
 
|
 
|
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|1:0}} Dark Blue
 
|{{Raw Tile|•|1:0}} Dark Blue
|[[Kimberlite]]
+
|{{L|Kimberlite}}
 
|
 
|
 
|
 
|
|[[Nether-cap]]
+
|{{L|Nether-cap}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|1:1}} Blue
 
|{{Raw Tile|•|1:1}} Blue
|[[Cobaltite]]
+
|{{L|Cobaltite}}
 
|
 
|
 
|
 
|
Line 218: Line 218:
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|5:0}} Purple
 
|{{Raw Tile|•|5:0}} Purple
|[[Pitchblende]], [[Rutile]]
+
|{{L|Pitchblende}}, {{L|Rutile}}
 
|
 
|
|[[Black bronze]]
+
|{{L|Black bronze}}
|[[Glumprong]]
+
|{{L|Glumprong}}
 
|-valign="top"
 
|-valign="top"
 
|{{Raw Tile|•|5:1}} Magenta
 
|{{Raw Tile|•|5:1}} Magenta
 
|
 
|
 
|
 
|
|[[Bismuth]], [[Rose gold]]
+
|{{l|Bismuth}}, {{l|Rose gold}}
|[[Tunnel tube]]
+
|{{L|Tunnel tube}}
 
|}
 
|}
  
Line 233: Line 233:
 
=== Color tokens ===
 
=== Color tokens ===
  
Material contaminants and [[dye]]s do not use color flags; instead, they reference color tokens defined in descriptor_color_standard.txt. Color tokens are simply referenced by the token name, e.g. <code>[STATE_COLOR:SOLID:DARK_GREEN]</code> or <code>[POWDER_DYE:EMERALD]</code>. However, the defined RGB values are never actually displayed in-game - instead, the game uses one of the above 16 colors, choosing the one with the closest RGB values.
+
Material contaminants and {{L|dye}}s do not use color flags; instead, they reference color tokens defined in descriptor_color_standard.txt. Color tokens are simply referenced by the token name, e.g. <code>[STATE_COLOR:SOLID:DARK_GREEN]</code> or <code>[POWDER_DYE:EMERALD]</code>. However, the defined RGB values are never actually displayed in-game - instead, the game uses one of the above 16 colors, choosing the one with the closest RGB values.
  
 
The following colors are defined via tokens:
 
The following colors are defined via tokens:

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)