iTween.ApplyColorTargets C# (CSharp) Method

ApplyColorTargets() private method

private ApplyColorTargets ( ) : void
return void
    void ApplyColorTargets()
    {
        //calculate:
        colors[0,2].r = ease(colors[0,0].r,colors[0,1].r,percentage);
        colors[0,2].g = ease(colors[0,0].g,colors[0,1].g,percentage);
        colors[0,2].b = ease(colors[0,0].b,colors[0,1].b,percentage);
        colors[0,2].a = ease(colors[0,0].a,colors[0,1].a,percentage);

        //apply:
        tweenArguments["onupdateparams"]=colors[0,2];

        //dial in:
        if(percentage==1){
            tweenArguments["onupdateparams"]=colors[0,1];
        }
    }
iTween