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: 1/18 frocessing

Get Adobe Flash player
by koichi_Og 21 Jul 2011
    Embed
/**
 * Copyright koichi_Og ( http://wonderfl.net/user/koichi_Og )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/fpfP
 */

// forked from koichi_Og's forked from: 1/18 frocessing 
// forked from albatrus_jp's 1/18 frocessing 
    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.colorMode("hsv",360,1,1);  //線の色
               for ( var i:int = 0 ; i < 300; i++ ) {
                  var cx:Number = Math.random()*360;
                   var cy:Number = Math.random();
                   var cr:Number = Math.random();
                  fg.strokeWeight( Math.random()*4 ); //線の太さ
                  fg.stroke(cx,1,cr);
                  fg.fill(cx,1,cr,.5);
                  //fg.noFill();
                  //fg.rect(cx, cy,Math.random()*40 ,Math.random()* 50 );
                  fg.rect(Math.random() * stage.width, Math.random() * stage.height,Math.random()*40 ,Math.random()* 50 );
              }
           }
      }
  }