I'm trying to figure out the mathematics behind the setTint method of  
basecomponent. The conversion of the color argument to the percent of  
alpha is clear. However, setTint calls setColorTransform with the  
brightness argument as the offset value. I suppose setColorTransform  
applies a function to the alpha and the offset to come up with an RGB  
color. What function is applied is what I'm intereste in. I couldn't  
find much documentation on it, so I downloaded the source code.  
Unfortunately, I could not find the source definition of that  
function other than:

LzView.prototype.setColorTransform = function ( o ){
     this.getColorObj().setTransform( o );
}

which made me look for setTransform, but ended up not finding what I  
needed.

If anyone could explain the math behind this function as to what it  
does to the alpha and the offset parameters, I would really  
appreciate it.

Thanks,
Daniel
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to