Question: Making a hex color darker
#4

Quote:
Originally Posted by LarzI
Посмотреть сообщение
This is very useful, thanks for that (sorry for responding just now, I forgot to check any comments on this thread).
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))
Reply


Messages In This Thread
Question: Making a hex color darker - by Maxips2 - 07.03.2013, 19:54
Re: Question: Making a hex color darker - by Vince - 07.03.2013, 19:58
Re: Question: Making a hex color darker - by LarzI - 07.03.2013, 20:03
Re: Question: Making a hex color darker - by Maxips2 - 16.03.2013, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)