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: forked from: F5GraphicsSample3

/**
 * Copyright hacker_szoe51ih ( http://wonderfl.net/user/hacker_szoe51ih )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/2Pww
 */

// forked from hacker_szoe51ih's forked from: F5GraphicsSample3
// forked from nutsu's F5GraphicsSample2
package {
    
    import flash.display.Sprite;
    import frocessing.core.F5Graphics2D;
    
    [SWF(width=465,height=465,backgroundColor=0)]
    public class F5GraphicsSample3 extends Sprite {
        
        public function F5GraphicsSample3() {
            var fg:F5Graphics2D = new F5Graphics2D( graphics );
            fg.colorMode( "hsv", 465, 465, 465 ); //HSVモード
            for ( var i:int = 0 ; i < 100; i++ ) {
                var cx:Number = Math.random()*465;
                var cy:Number = Math.random()*465;
                var cr:Number = Math.random()*110;
                fg.strokeWeight( Math.random()*3 ); //線の太さ
                fg.stroke( 255,255,255,0.8);   
                fg.noFill();          //線の色
                fg.circle( cx,cy,cr);
            }
        }
    }
}