03.02.2016, 23:58
clamp
This is a very good function to reset colors in range.
Also, you can checkout this method for changing a color's transparency (in context to your 'lighten' function):
Reference: https://sampwiki.blast.hk/wiki/Colors_List
This is a very good function to reset colors in range.
Also, you can checkout this method for changing a color's transparency (in context to your 'lighten' function):
pawn Code:
stock lighten(color, alpha)
{
return (color & ~0xFF) | alpha;
}