[0.16.28]Map color different than lua file

Bugs that are actually features.
Bilka
Factorio Staff
Factorio Staff
Posts: 3624
Joined: Sat Aug 13, 2016 9:20 am
Contact:

[0.16.28]Map color different than lua file

Post by Bilka »

When color picking the map color of the transport belt, I get #ce9e42. This can be converted to r: 0.80, g: 0.62, b: 0.26 which is different from ["transport-belt"] = {r = 0.8, g = 0.63, b = 0.28}, which is defined in data/core/prototypes/utility-constants.lua. The same can be done for all other map colors, each will yield slightly different color offsets.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.16.28]Map color different than lua file

Post by posila »

Map uses 16bit color format (RGB565) to save memory, so it has precision 0.03125 on red and blue channel and 0.015625 on green channel. In binnary/hex format it means tree (two) lowest bits are lost from RB (G)
Post Reply

Return to “Not a bug”