05.07.2016, 00:35
Quote:
Hey could you explain two the line of format for me?
I don't understand what ">>> 8" means, nor the {%06x} also, just to be sure, what do u assume you exactly have in array hex[]? Only the code of the colors correct? Thanks for replying! |
{%06x} = placeholder for hexadecimal values, the 6 ensures that the output string will always be six characters long and the 0 will pad it with zeros if it's not
>>> 8 = logical right shift to remove the alpha value (transparent: two last characters)
https://sampwiki.blast.hk/wiki/Colors_List