Have a changeimgcolors(index, r, g, b, a); and use it in a script in the gani :o
and attr[2] could be like
PHP Code:
attr[2] = "1 1 1 0.75";
PHP Code:
red = green = blue = alpha = "";
colors = "red green blue alpha";
i = 0;
for(j : attr[2].tokenize()) {
makevar(colors.tokenize()[i]) = j;
i ++;
}
changeimgcolors(1, red, green, blue, alpha);
dunno if that would work, but something like that in the gani