color: int to string (hex)
#1

I converting color to hex code using:

new color = 0xBB9911AA;

format(string,sizeof(string),"{%06x}nice color",color >>> 8 );

result is:
"{BB9911}nice color"
i need:
"{BB9911AA}nice color"

How to do to get there display parameter transparency (alpha prarametr) ?
Reply


Messages In This Thread
color: int to string (hex) - by ATomas - 12.06.2013, 13:37
Re: color: int to string (hex) - by OrMisicL - 12.06.2013, 13:59
Re: color: int to string (hex) - by feartonyb - 12.06.2013, 13:59
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:55
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:58
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:49
Re: color: int to string (hex) - by Vince - 13.06.2013, 09:51
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)