16.03.2013, 13:23
Quote:
Found this on stackoverflow: http://stackoverflow.com/questions/1...n-a-hex-colour
|
Someone commented there, on stackoverflow and suggested another implemention which only makes the color a little bit darker.
However, I want to do it with a multiplyer (how much lighter I want it to be).
I conveted his implemention to RGBA (it was RGB), it works, but I have no idea how to do it like I want it to be.
pawn Код:
#define RGBA_DARKER(%0) (((%0 & 0x7E7E7E00) >> 1) | (%0 & 0x80808000))