Is there a list of colours for text?
#8

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?
Reply


Messages In This Thread
Is there a list of colours for text? - by Deal-or-die - 14.03.2011, 12:52
Re: Is there a list of colours for text? - by HyperZ - 14.03.2011, 13:04
Re: Is there a list of colours for text? - by Deal-or-die - 14.03.2011, 13:07
Re: Is there a list of colours for text? - by Deal-or-die - 14.03.2011, 14:04
Re: Is there a list of colours for text? - by Pz - 14.03.2011, 14:06
Re: Is there a list of colours for text? - by Deal-or-die - 14.03.2011, 14:09
Re: Is there a list of colours for text? - by Tee - 14.03.2011, 14:36
Re: Is there a list of colours for text? - by Sasino97 - 14.03.2011, 15:17
Re: Is there a list of colours for text? - by Sasino97 - 14.03.2011, 16:06
Re: Is there a list of colours for text? - by kacperoo - 12.07.2011, 14:55

Forum Jump:


Users browsing this thread: 2 Guest(s)