Colors simplier to read
#1

Hello everybody.
Usually a color is defined in that way:
pawn Код:
#define COLOR_RED 0xFF006600
This way the hex-code isn't that clear to read (FF0066). So I wanted to make it a little bit clearer:
pawn Код:
#define c(%1) 0x%100
#define COLOR_RED c(FF0066)
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
Reply


Messages In This Thread
Colors simplier to read - by Padarom - 28.04.2012, 12:49
Re: Colors simplier to read - by .FuneraL. - 28.04.2012, 12:52
AW: Colors simplier to read - by Padarom - 28.04.2012, 12:56
Re: Colors simplier to read - by Niko_boy - 28.04.2012, 13:21
Re: Colors simplier to read - by 2KY - 28.04.2012, 13:23
Re: Colors simplier to read - by Niko_boy - 28.04.2012, 13:27
AW: Colors simplier to read - by Padarom - 28.04.2012, 13:34
Re: Colors simplier to read - by MP2 - 28.04.2012, 13:39
Re: Colors simplier to read - by Niko_boy - 28.04.2012, 13:41
AW: Colors simplier to read - by Padarom - 28.04.2012, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)