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.

Difference between revisions of "Template talk:Tile"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Color rant. Maybe I'll finally figure out which color my Rhesus Macaque is...)
 
m (typo. Need to use preview more.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Colors ==
+
See also [[Talk:Color|color discussion]] --[[User:Mechturk|Mechturk]] 20:57, 5 November 2007 (EST)
I'm not quite sure where to put this, but here's a good a place as any.  I've been trying to work out the internal color notation for raw tile displays of creatures (though this applies to other things such as stone and minerals too.  From what I've been able to figure out the the notation is [COLOR:fg:bg:brightness] (e.g. [COLOR:7:0:1] where the foreground and background colors refer to the colors shown in /data/init/init.txt
 
 
 
Thus, we have the following:
 
{|
 
! No. !! Name !! RGB !! Hex
 
|-
 
| 0 || <span style="color: #000000">BLACK</span> || (0,0,0) || #000000
 
|-
 
| 1 || <span style="color: #000080">BLUE</span> || (0,0,128) || #000080
 
|-
 
| 2 || <span style="color: #008000">GREEN</span> || (0,128,0) || #008000
 
|-
 
| 3 || <span style="color: #008080">CYAN</span> || (0,128,128) || #008080
 
|-
 
| 4 || <span style="color: #800000">RED</span> || (128,0,0) || #800000
 
|-
 
| 5 || <span style="color: #800080">MAGENTA</span> || (128,0,128) || #800080
 
|-
 
| 6 || <span style="color: #808000">BROWN</span> || (128,128,0) || #808000
 
|-
 
| 7 || <span style="color: #c0c0c0">L-GRAY</span> || (192,192,192) || #c0c0c0
 
|-
 
| 8 || <span style="color: #808080">D-GRAY</span> || (128,128,128) || #808080
 
|}
 
 
 
Brightness, which only seems to have a value of 0 or 1 appears to adds some value to RGB and where this makes the RGB over 256, sets the value to 256.  The addition may apply to all 3 basic colors, or only those originally present (excepting black where this seems to turn the color into dark gray), I still haven't quite worked it out.  Does plump helmet spawn look like {{Tile|.|#f00000|#000}} (add to one) or {{Tile|.|#ff8080|#000}} (add to all - this doesn't look quite right to me).  Anyway, elaborating, {{Tile|τ|#ffffff|#000}} Cave Wheat [COLOR:7:0:1] is white, while  {{Tile|τ|#c0c0c0|#000}} Pig Tail [COLOR:7:0:0] remains light gray.
 
 
 
I'm mainly typing this for my own benefit to nut out a method of double checking creature colors, but that said, it might be valuable elsewhere.  What can I say, there's only so many times I can fiddle with the color of the Rhesus macaque before I need some certainty.
 
 
 
So, if my colors are wrong, how *are* colors worked out from the [COLOR] values?  We need some sort of standard or guideline.  --[[User:Mechturk|Mechturk]] 20:41, 5 November 2007 (EST)
 
 
 
=== Game colors vs Webfriendly ===
 
Ok, so even if I've got these colors correct, the game colors aren't the webfriendly colors consisting of combinations of hexadecimal 00, 33, 66, 99, cc, ff (which can be abbreviated to the single digits 0, 3, 6, 9, c, f).  So, what color values do we go with?  Is there even a discernible difference between the color as in the game, or a web friendly approximation, that is, should color #808080 for example be approximated to #999999 (same as #999)?
 
 
 
Examples:
 
{|
 
|-
 
! Object !! Code !! Game !! Web
 
|-
 
|Galena || [COLOR:7:7:1] || {{Tile|£|#fff|#c0c0c0}} || {{Tile|£|#fff|#ccc}}
 
|-
 
| Sphalerite || [COLOR:0:7:1] || {{Tile|£|#808080|#c0c0c0}} || {{Tile|£|#999|#ccc}}
 
|-
 
| Pig tail || [COLOR:7:0:0] || {{Tile|τ|#c0c0c0|#000}} || {{Tile|τ|#ccc|#000}}
 
|-
 
| Plump helmet || [COLOR:5:0:0] || {{Tile|♠|#800080|#000}} || {{Tile|♠|#909|#000}}
 
|-
 
| Plump helmet spawn || [COLOR:4:0:1] || {{Tile|.|#ff0000|#000}} || {{Tile|.|#f00|#000}}
 
|}
 
Compare with the colors from [[Bloodline:Outpost_Ducimemal_Chapter_1|Oupost Ducimemal]].
 

Latest revision as of 01:57, 6 November 2007

See also color discussion --Mechturk 20:57, 5 November 2007 (EST)