[15.6] Character colour does not match text colour

Bugs that are actually features.
Post Reply
Dupl3xxx
Inserter
Inserter
Posts: 40
Joined: Sat Mar 07, 2015 6:50 pm
Contact:

[15.6] Character colour does not match text colour

Post by Dupl3xxx »

When using the /color [0-255] [0-255] [0-255] [0-255] or /color [name of colour] some values don't give the expected results. The text colour when you write in the chat will be fairly accurate, but the character colours will not. Many blue colours will result in a light-pink character, and white gives a pale yellow. It seems the 'base orange' is always there, interfering with the colour of the player model. See attached screenshots for examples:
Attachments
Factorio player model colour.png
Factorio player model colour.png (706.33 KiB) Viewed 2247 times

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [15.6] Character colour does not match text colour

Post by posila »

Thanks for the report.
This is not a bug, but based on this, I changed color parsing to default alpha (the 4th) component to 255 if not specified. So color command should be used mainly as /color r g b
If you want to read some boring math we wrote a FFF article about premultiplied alpha

Post Reply

Return to “Not a bug”