Rich Text uses #AARRGGBB or #RRGGBBAA ?
Moderator: Bilka
Rich Text uses #AARRGGBB or #RRGGBBAA ?
wiki.factorio.com/Rich_text shows #AARRGGBB, but it looks to me in-game like #RRBBGGAA ?
Re: Rich Text uses #AARRGGBB or #RRGGBBAA ?
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 ?
Thanks Posila. Apologies for that.
For my future reference... you can't currently use lualib util.color(hex) function for this!
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'