28.04.2012, 12:49
Hello everybody.
Usually a color is defined in that way:
This way the hex-code isn't that clear to read (FF0066). So I wanted to make it a little bit clearer:
But now the color is black everytime. In my opinion it is because the code cuts the 0 (from the 0x in front). But I don't really know why. Is there a way to do this more easily or at least without the bug?
And yeah, I know it's pretty senseless, no need to mention that :P
Thanks in advance.
Padarom
Usually a color is defined in that way:
pawn Код:
#define COLOR_RED 0xFF006600
pawn Код:
#define c(%1) 0x%100
#define COLOR_RED c(FF0066)
And yeah, I know it's pretty senseless, no need to mention that :P
Thanks in advance.
Padarom