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.

Template talk:Tile

From Dwarf Fortress Wiki
Revision as of 01:41, 6 November 2007 by Mechturk (talk | contribs) (Color rant. Maybe I'll finally figure out which color my Rhesus Macaque is...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Colors

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 BLACK (0,0,0) #000000
1 BLUE (0,0,128) #000080
2 GREEN (0,128,0) #008000
3 CYAN (0,128,128) #008080
4 RED (128,0,0) #800000
5 MAGENTA (128,0,128) #800080
6 BROWN (128,128,0) #808000
7 L-GRAY (192,192,192) #c0c0c0
8 D-GRAY (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 . (add to one) or . (add to all - this doesn't look quite right to me). Anyway, elaborating, τ Cave Wheat [COLOR:7:0:1] is white, while τ 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. --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] £ £
Sphalerite [COLOR:0:7:1] £ £
Pig tail [COLOR:7:0:0] τ τ
Plump helmet [COLOR:5:0:0]
Plump helmet spawn [COLOR:4:0:1] . .

Compare with the colors from Oupost Ducimemal.