28.09.2017, 00:32
Hello. Given starting colour, say 0xBADA55 I need a function which fades it to white by given percentage. So:
Did someone already written such function in PAWN?
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