Change 20080929-hqm-i by hqm@badtzmaru.home on 2008-09-29 15:36:15 EDT     in /Users/hqm/openlaszlo/trunk/WEB-INF/lps/lfc     for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc
Change 20080929-hqm-i by hqm@badtzmaru.home on 2008-09-29 15:36:15 EDT
    in /Users/hqm/openlaszlo/trunk/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary: implement colorTransform for swf9 sprite

New Features:

Bugs Fixed: LPP-7084

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

    

Tests:

<canvas width="100%" height="80%" debug="true">
  <debug  fontsize="12"/>

        <method name="setTint" args="v, color, brightness=0">
            <![CDATA[
            if (v.capabilities.colortransform) {
            if (color != "" && color != null){
                var rgb = color;
                var red=(rgb >> 16) & 0xFF;
                var green=(rgb >> 8) & 0xFF;
                var blue=rgb & 0xFF;

                red += 0x33;
                green += 0x33;
                blue += 0x33;

                red = red/255*100;
                green = green/255*100;
                blue = blue/255*100;

                v.setColorTransform( { ra : red, ga : green, ba : blue,
                                rb : brightness, gb : brightness, 
                                bb : brightness } );
                }
            }
            ]]>
        </method>

  <simplelayout/>
  <button onclick="canvas.setTint(foo, 0xB3D3B3);
                   t1.setAttribute('fgcolor', blue);
                   baz.setAttribute('fgcolor', green)">Set the tints</button>
  <button id="foo" >This is a button</button>

  <view id="baz">
    <view id="bar" width='100' height='100' bgcolor="#cccccc"/>
  </view>
  <text id="t1">This is some text</text>

</canvas>




git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@11271 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo