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 "40d Talk:Color"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (moved Talk:Broken/40d\x3aColor to 40d Talk:Color: Fixing talk page name (131/738))
 
(3 intermediate revisions by 3 users not shown)
Line 22: Line 22:
 
:The in game colors are perfectly web friendly rgb values. If you look up the numbers from the init file and convert to hexadecimal, everything is peachy keen. You'll note the main color values are divisible by 16, meaning they perfectly line up with 3 digit color codes.[[User:VengefulDonut|VengefulDonut]] 22:52, 5 November 2007 (EST)
 
:The in game colors are perfectly web friendly rgb values. If you look up the numbers from the init file and convert to hexadecimal, everything is peachy keen. You'll note the main color values are divisible by 16, meaning they perfectly line up with 3 digit color codes.[[User:VengefulDonut|VengefulDonut]] 22:52, 5 November 2007 (EST)
 
::Except values in 3 digit color codes are divisible by 17. #387 = #338877 -- [[User:Zaratustra|Zaratustra]] 23:44, 5 November 2007 (EST)
 
::Except values in 3 digit color codes are divisible by 17. #387 = #338877 -- [[User:Zaratustra|Zaratustra]] 23:44, 5 November 2007 (EST)
 +
:::Right.  The values of 128 (for the darker colors) and 192 (for light gray) used in game correspond to 80h and c0h respectively.  Though I'm more than happy to go with three color codes, as long as it's settled which ones to use.  --[[User:Mechturk|Mechturk]] 15:33, 6 November 2007 (EST)
 
:We don't need to compensate for people using ancient 256 color desktops, if your browser can't render colors correctly, get a better one. --[[User:Rick|Rick]] 22:57, 5 November 2007 (EST)
 
:We don't need to compensate for people using ancient 256 color desktops, if your browser can't render colors correctly, get a better one. --[[User:Rick|Rick]] 22:57, 5 November 2007 (EST)
 +
 +
== Dye color RGB values? ==
 +
 +
Each color token (currently used only for dyes) includes very specific RGB values; however, they're never actually used for anything, instead seemingly being replaced by one of the base 16 colors with the closest RGB values - Emerald dye normally comes up as color COLOR:2:1, though if I change the RGB values from 80/200/120 to 80/100/220 it starts using COLOR:1:1 instead. --[[User:Quietust|Quietust]] 12:48, 23 October 2009 (UTC)

Latest revision as of 21:43, 8 March 2010

Game colors vs Webfriendly[edit]

Ok, so 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 for tiles? 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. --Mechturk 20:55, 5 November 2007 (EST)

On the old wiki, we went with the game colors. --Savok 22:45, 5 November 2007 (EST)
The in game colors are perfectly web friendly rgb values. If you look up the numbers from the init file and convert to hexadecimal, everything is peachy keen. You'll note the main color values are divisible by 16, meaning they perfectly line up with 3 digit color codes.VengefulDonut 22:52, 5 November 2007 (EST)
Except values in 3 digit color codes are divisible by 17. #387 = #338877 -- Zaratustra 23:44, 5 November 2007 (EST)
Right. The values of 128 (for the darker colors) and 192 (for light gray) used in game correspond to 80h and c0h respectively. Though I'm more than happy to go with three color codes, as long as it's settled which ones to use. --Mechturk 15:33, 6 November 2007 (EST)
We don't need to compensate for people using ancient 256 color desktops, if your browser can't render colors correctly, get a better one. --Rick 22:57, 5 November 2007 (EST)

Dye color RGB values?[edit]

Each color token (currently used only for dyes) includes very specific RGB values; however, they're never actually used for anything, instead seemingly being replaced by one of the base 16 colors with the closest RGB values - Emerald dye normally comes up as color COLOR:2:1, though if I change the RGB values from 80/200/120 to 80/100/220 it starts using COLOR:1:1 instead. --Quietust 12:48, 23 October 2009 (UTC)