On 2006-06-05, at 18:33 EDT, Daniel Salama wrote:
> 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.
setTransform is a player primitive: http://tinyurl.com/ke59u
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev