Page 1 of 1
Rich Text uses #AARRGGBB or #RRGGBBAA ?
Posted: Sun Apr 26, 2020 6:32 pm
by moon69
wiki.factorio.com/Rich_text shows #AARRGGBB, but it looks to me in-game like #RRBBGGAA ?
Re: Rich Text uses #AARRGGBB or #RRGGBBAA ?
Posted: Sun Apr 26, 2020 6:54 pm
by posila
It is #AARRGGBB, but it is expected to be with premultiplied alpha, as every other color value in the game. Honestly, now I regret even allowing it to have alpha in this format.
Re: Rich Text uses #AARRGGBB or #RRGGBBAA ?
Posted: Sun Apr 26, 2020 7:55 pm
by moon69
Thanks Posila. Apologies for that.
For my future reference... you can't currently use
lualib util.color(hex) function for this!
Code: Select all
function util.color(hex) -- supports 'rrggbb', 'rgb', 'rrggbbaa', 'rgba', 'ww', 'w'