ColorBetween function. Fail.
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
Edit: I didn't pay attention to the "& 0xFF". In any case that should only select the lower 8 bits, no matter what kind of shift is used.
So I had it right (except the '>>> 24' part)? The conversion functions seem to be working fine. But the ColorBetween is still not working.

Edit: Wait, it might be working now... Brb... So far I'm pretty sure it is...






EDIT: Now that I have that... The following only returns an array with the first gradient (between the first two parameters, but it does loop though all given).
pawn Код:
stock GenerateGradient(...)
{
    new Colors[263], Steps = (263/numargs()), Color[263];
    for(new i; i<numargs()-1; i++)
    {
        ColorsBetween(getarg(i), getarg(i+1), Steps, Color);
        for(new j; j<Steps; j++) Colors[(i*Steps)+j] = Color[j];
    }
    return Colors;
}
Help please!
Reply


Messages In This Thread
ColorBetween function. Fail. - by Crayder - 19.03.2015, 07:02
AW: ColorBetween function. Fail. - by Kaliber - 19.03.2015, 07:19
Re: ColorBetween function. Fail. - by Vince - 19.03.2015, 10:22
Re: ColorBetween function. Fail. - by Crayder - 19.03.2015, 12:06
AW: Re: ColorBetween function. Fail. - by Kaliber - 19.03.2015, 12:17
Re: ColorBetween function. Fail. - by Vince - 19.03.2015, 14:41
Re: ColorBetween function. Fail. - by Crayder - 19.03.2015, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)