hey all,
I am using a slightly modified script from senocular for transitioning color transforms. the issue is that if i tween from blue to red or vice versa, the colour transitions through green. is there a way around that?
here is the function that i use
private function blendRGB(clipColor, c1, c2, t) {
if (arguments.length == 3){
t = c2;
c2 = clipColor;
}
if (t<-1) t=-1;
else if (t>1) t=1;
if (t<0) t=1+t;
var ct = {};
//c1 = c1.getTransform();
c2 = c2.getTransform();
for (var p in c1) ct[p] = c1[p]+(c2[p]-c1[p]) * t;
clipColor.setTransform(ct);
return ct;
}