In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: flash on 2011-1-18

...
@author jc at bk-zen.com
Get Adobe Flash player
by bradsedito 19 Jan 2011
/**
 * Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/t9fT
 */

// forked from bkzen's flash on 2011-1-18
package  
{
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.BlendMode;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.StageQuality;
    /**
     * ...
     * @author jc at bk-zen.com
     */
    [SWF (backgroundColor = "0x000000", stage.quality = StageQuality.BEST, frameRate = "100", width = "465", height = "465")]

    public class Test21 extends Sprite
    {
        
        public function Test21() 
        {        
            var sh: Shape = new Shape(), g: Graphics = sh.graphics, i: int, n: int = 465;
            var bmd: BitmapData = new BitmapData(n, n, true, 0x000000);
            bmd.lock();
            for (i = 0; i < n; i++) 
            {
                g.clear();

                g.lineStyle(2, (i/3<<16)|((255-i)<<8)*((255-i>>-1)+1)|255,0.08);
                
                g.moveTo(i, n), g.lineTo(n, n - i );
                g.moveTo(n, i), g.lineTo(i, i -n  );

                
                bmd.draw(sh, null, null, BlendMode.LAYER, null, true);
            }
            addChild(new Bitmap(bmd, "auto", true));
        }
    }
}