Need help with Colors
#1

Hi , as i know we can put colors in chat text like

(xxxxxx)Hello to (xxxxxx) O(xxxxxx)Wner (xxxxxx)%s.....

so the problem is how to know all the colors than we can put ?
in other this is an example :
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Welcome to {00FF00}M{FFFFFF}a{FF0000}r{FFFFFF}c{00FF00}o{FFFFFF}'{FF0000}s {FFFFFF}B{00FF00}i{FFFFFF}s{FF0000}t{FFFFFF}r{00FF00}o{FFFFFF}!");
why we put like : {FFFFFF}(six letters) and not {0xRRGGBBDD} ?
Reply
#2

Hex only uses RRGGBB, not the opacity.

So practicly:
0xFFAAFFAA will be: FFAAFF.
Only thing you have to do, is remove the opacity and the '0x'.
Reply
#3

There are 256 ^ 3 = 16,777,216 different available colors! Use a color picker and copy the HTML code (without the hash character).
Reply
#4

im offering you to use ColorPicker by thedarkjoker94. You only need to select what color you wont and what name you wont to give him
Reply
#5

so Hex use only those letters ?(marked in red) : 0xFFAAFFAA
Reply
#6

Yep. They only use RRGGBB, just like u marked them above.
Reply
#7

Thanks all !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)