SA-MP Forums Archive
Is there a list of colours for text? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is there a list of colours for text? (/showthread.php?tid=239719)



Is there a list of colours for text? - Deal-or-die - 14.03.2011

Hey Fellow Scripters again
This time i was just wondering if there was a list somewhere or something i could use to get the Colour codes from for the IG text?

Cheers Steve


Re: Is there a list of colours for text? - HyperZ - 14.03.2011

Click Me


Re: Is there a list of colours for text? - Deal-or-die - 14.03.2011

Siiick Thanks


Re: Is there a list of colours for text? - Deal-or-die - 14.03.2011

Hmmm....
when i "#define ANNOUNCEMENT 0xFF0000"
Shouldn't announcement to Red not green?

I guess im doing something wrong cos they are different lengths
#define ANNOUNCEMENT 0xFF0000
#define GREY 0xCECECEFF

I also tried "#define ANNOUNCEMENT 0xCC1111"

Still doesn't compare:
#define ANNOUNCEMENT 0xCC1111
#define GREY 0xCECECEFF


Re: Is there a list of colours for text? - Pz - 14.03.2011

Click here to check an application that was made for this type of stuff.


Re: Is there a list of colours for text? - Deal-or-die - 14.03.2011

"503 Service Temporarily Unavailable"


Re: Is there a list of colours for text? - Tee - 14.03.2011

Here you go. Don't try this at home. Lol just scroll down and click the solidfiles mirror. That is the one I trust .


Re: Is there a list of colours for text? - Sasino97 - 14.03.2011

Quote:
Originally Posted by ******
Посмотреть сообщение
No - colours are defined as "RGBA" - that's Red, Green, Blue, Alpha. When written as a hexadecimal number these sections nicely fit in to individual bytes:

pawn Код:
0xRRGGBBAA
(Note that R and G aren't valid hex values, this is just an example). Your code only has three bytes listed, so only three of the 4 bytes are defined, the fourth is the default (0), so you have, when the code is padded to 4 bytes:

pawn Код:
0x00FF0000
Which clearly sets the Red component to 0.
Hi, can I ask what's the difference between "0xFF0000FF" and "0xAA0000AA" ? Are A, B, C, D, E and F the same thing?


Re: Is there a list of colours for text? - Sasino97 - 14.03.2011

I think I learned it. So the max value of 1 hexadecimal digit is 16?

And how to make colors with decimal numbers?


Re: Is there a list of colours for text? - kacperoo - 12.07.2011

Hm, how to convert hex in RGB format to RGBA?