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: F5GraphicsSample2

Get Adobe Flash player
by photomotch 27 Sep 2011
    Embed
/**
 * Copyright photomotch ( http://wonderfl.net/user/photomotch )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4xrm
 */

// forked from nutsu's F5GraphicsSample2
package {
    
    import flash.display.Sprite;
    import frocessing.core.F5Graphics2D;
    
    [SWF(width=465,height=465,backgroundColor=0)]
    public class F5GraphicsSample2 extends Sprite {
        
        public function F5GraphicsSample2() {
            var fg:F5Graphics2D = new F5Graphics2D( graphics );
            fg.stroke( 0xff2020 ); //線の色
            for ( var i:int = 0 ; i < 300; i++ ) {
                var cx:Number = Math.random()*465;
                var cy:Number = Math.random()*465;
                var cr:Number = Math.random()*20;
                fg.strokeWeight( Math.random()*4 ); //線の太さ
                graphics.drawCircle( cx, cy, cr );
            }
        }
    }
}