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

flash on 2010-11-19

Get Adobe Flash player
by shapevent 19 Nov 2010
/**
 * Copyright shapevent ( http://wonderfl.net/user/shapevent )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/hNb3
 */

package {
    import flash.display.Sprite;
    import flash.display.*;
    
    public class FlashTest extends Sprite {
        
        public function FlashTest() {
          var size:Number = 800;
var canvas:BitmapData = new BitmapData(size,size,false, 0x000000);
addChild(new Bitmap(canvas, "auto", true));
 
scaleX = scaleY = .5;
var pix:Number = size * size;
var scale:Number = 1/(size/3);
 
for (var i:Number = 0; i<pix; i++){
       var xp:Number = (i % size);
       var yp:Number = int(i / size);
       var xt:Number = xp * scale;
       var yt:Number = yp * scale;
       var ca:Number =  (Math.abs(Math.tan(yt) * Math.pow(Math.sin(xt),3)) * 100 ) % 155;
       var cb:Number =  (Math.abs(Math.tan(xt) * Math.pow(Math.sin(yt),3)) * 100)  % 155;
       ca|= cb;
       canvas.setPixel(xp, yp,  ca <<16 | ca <<8 | ca);
}
            
        }
    }
}