19.03.2015, 20:43
(
Последний раз редактировалось Crayder; 19.03.2015 в 23:56.
)
Quote:
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.
![]() |
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;
}