[Laszlo-dev] ColorTransform and LPP-7481

Philip Romanik promanik at laszlosystems.com
Tue Dec 16 05:42:40 PST 2008


Hi Henry,

I traced this problem down to a changeset where ColorTransform was 
added (r11271). I think that LzSprite.setColor for swf9 should be a 
nop. Setting the color property of ColorTransform is setting the 
color offsets to add when drawing. In the testcase, the foreground 
color is white, and the background color is black. Calling 
setColor(0xffffff) will set the color offsets to 0xff and everything 
will always be white.

Can you take a look and see if you agree?

Thanks!

Phil


Here's a simplified testcase. The screen should be black but it is 
white in swf9


<canvas width="100%" height="100%">
<view width="100%" height="100%" bgcolor="0x000000" fgcolor="0xffffff">
</view>
</canvas>




More information about the Laszlo-dev mailing list