1/18 frocessing

by albatrus_jp
♥0 | Line 20 | Modified 2010-01-18 09:38:33 | MIT License
play

ActionScript3 source code

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

    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",465,1,465);  //線の色
               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 ); //線の太さ
                  fg.stroke(cx,1,cy);
                  fg.fill(cx,1,cy,0.50);
                  fg.rect(cx, cy,Math.random()*40 ,Math.random()* 50 );
              }
           }
      }
  }
 

Forked