Fade any colour to white
#1

Hello. Given starting colour, say 0xBADA55 I need a function which fades it to white by given percentage. So:

pawn Код:
new start = 0xBADA55;
FadeToWhite(start, 1.0); // 100% fade, white 0xFFFFFF
FadeToWhite(start, 0.5); // 50% fade, less green, more white, somewhere around 0xC4D392
Did someone already written such function in PAWN?
Reply


Messages In This Thread
Fade any colour to white - by Misiur - 28.09.2017, 00:32
Re: Fade any colour to white - by Misiur - 28.09.2017, 00:54
Re: Fade any colour to white - by Sew_Sumi - 28.09.2017, 06:19
Re: Fade any colour to white - by Misiur - 28.09.2017, 07:34

Forum Jump:


Users browsing this thread: 1 Guest(s)