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 | + | '''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 | + | :* ''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 | + | :* ''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 | + | :* ''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| | + | [[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 | + | 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 | + | 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 | + | ::::''(* 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 | ||
− | | | + | |{{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}} |
− | | | + | |{{L|Galena}}, {{L|Horn silver}}, {{L|Native aluminum}}, {{L|Native platinum}}, {{L|Native silver}} |
− | | | + | |{{L|Silver}}, {{L|Platinum}}, {{l|Aluminum}}, {{l|Fine pewter}}, {{l|Nickel silver}}, {{l|Sterling silver}} |
− | | | + | |{{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 | ||
− | | | + | |{{L|Anhydrite}}, {{L|Dacite}}, {{L|Gneiss}}, {{L|Granite}}, {{L|Phyllite}}, {{L|Stibnite}} |
− | | | + | |{{L|Bismuthinite}} |
− | | | + | |{{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 | ||
− | | | + | |{{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}} |
− | | | + | |{{L|Bituminous coal}}, {{L|Lignite}}, {{L|Magnetite}}, {{L|Sphalerite}}, {{L|Tetrahedrite}} |
− | | | + | |{{l|Iron}}, {{l|Steel}}, {{l|Lead}}, {{l|Pig iron}} |
− | | | + | |{{L|Black-cap}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|6:0}} Brown | |{{Raw Tile|•|6:0}} Brown | ||
− | | | + | |{{L|Chert}}, {{L|Conglomerate}}, {{L|Mudstone}}, {{L|Puddingstone}}, {{L|Sandstone}}, {{L|Schist}}, {{L|Siltstone}} |
− | | | + | |{{L|Cassiterite}}, {{L|Native copper}} |
− | | | + | |{{l|Copper}}, {{l|Bronze}} |
− | | | + | |{{L|Tree|All other aboveground trees}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|6:1}} Yellow | |{{Raw Tile|•|6:1}} Yellow | ||
− | | | + | |{{L|Brimstone}}, {{L|Orpiment}}, {{L|Orthoclase}}, {{L|Saltpeter}}, {{L|Sylvite}}, {{L|Gypsum}} |
− | | | + | |{{L|Limonite}}, {{L|Native gold}} |
− | | | + | |{{l|Gold}}, {{l|Bismuth bronze}}, {{l|Brass}}, {{l|Electrum}} |
− | | | + | |{{L|Fungiwood}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|4:0}} Dark Red | |{{Raw Tile|•|4:0}} Dark Red | ||
− | | | + | |{{L|Bauxite}}, {{L|Kaolinite}} |
− | | | + | |{{L|Hematite}} |
| | | | ||
− | | | + | |{{L|Blood thorn}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|4:1}} Red | |{{Raw Tile|•|4:1}} Red | ||
− | | | + | |{{L|Cinnabar}}, {{L|Petrified wood}}, {{L|Realgar}} |
| | | | ||
| | | | ||
− | | | + | |{{L|Goblin-cap}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|2:0}} Green | |{{Raw Tile|•|2:0}} Green | ||
− | | | + | |{{L|Olivine}}, {{L|Serpentine}} |
− | | | + | |{{L|Malachite}} |
| | | | ||
− | | | + | |{{L|Green glass}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|2:1}} Bright Green | |{{Raw Tile|•|2:1}} Bright Green | ||
| | | | ||
− | | | + | |{{L|Garnierite}} |
| | | | ||
| | | | ||
|-valign="top" | |-valign="top" | ||
− | |{{Raw Tile|•|3:0}} | + | |{{Raw Tile|•|3:0}} Teal |
| | | | ||
| | | | ||
− | | | + | |{{l|Lay pewter}} |
− | | | + | |{{L|Clear glass}}, {{L|Spore tree}} |
|-valign="top" | |-valign="top" | ||
− | |{{Raw Tile|•|3:1}} | + | |{{Raw Tile|•|3:1}} Cyan |
− | | | + | |{{L|Microcline}} |
− | | | + | |{{L|Raw adamantine}} |
− | | | + | |{{l|Adamantine}} |
| | | | ||
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|1:0}} Dark Blue | |{{Raw Tile|•|1:0}} Dark Blue | ||
− | | | + | |{{L|Kimberlite}} |
| | | | ||
| | | | ||
− | | | + | |{{L|Nether-cap}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|1:1}} Blue | |{{Raw Tile|•|1:1}} Blue | ||
− | | | + | |{{L|Cobaltite}} |
| | | | ||
| | | | ||
Line 218: | Line 218: | ||
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|5:0}} Purple | |{{Raw Tile|•|5:0}} Purple | ||
− | | | + | |{{L|Pitchblende}}, {{L|Rutile}} |
| | | | ||
− | | | + | |{{L|Black bronze}} |
− | | | + | |{{L|Glumprong}} |
|-valign="top" | |-valign="top" | ||
|{{Raw Tile|•|5:1}} Magenta | |{{Raw Tile|•|5:1}} Magenta | ||
| | | | ||
| | | | ||
− | | | + | |{{l|Bismuth}}, {{l|Rose gold}} |
− | | | + | |{{L|Tunnel tube}} |
|} | |} | ||
Line 233: | Line 233: | ||
=== Color tokens === | === Color tokens === | ||
− | Material contaminants and | + | 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: |