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

Tree(せいさく中ー)

Get Adobe Flash player
by initt 18 Jan 2010
/**
 * Copyright initt ( http://wonderfl.net/user/initt )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aPk8
 */

package {
    import flash.display.Sprite;
    import frocessing.display.*;
    
    public class Tree extends F5MovieClip2DBmp {
    	
        public function Tree() {
            // write as3 code here..
            super();
            
        }
        
        
        
        public function setup():void        {        		size(stage.stageWidth,stage.stageHeight);
        		background(255); 
        		noFill(); 
        		colorMode("hsv",255,255,255,255); 
        		stroke(50,100,100,10);        	}
     
     public function draw():void
     {
     	beginShape();
  		curveVertex(stage.stageWidth / 2 + (Math.random() * 200) - 100,stage.stageHeight * 0.9);
  		curveVertex(stage.stageWidth / 2 + (Math.random() * 200)- 100,stage.stageHeight * 0.85);
  		curveVertex(stage.stageWidth / 2 +(Math.random() * 100) - 50,stage.stageHeight * 0.75);
  		curveVertex(stage.stageWidth / 2 + (Math.random() * 100) - 50,stage.stageHeight * 0.65);
  		curveVertex(stage.stageWidth / 2 + (Math.random() * 100) - 50,stage.stageHeight * 0.55);
  		curveVertex(stage.stageWidth / 2 + (Math.random() * 100) - 50,stage.stageHeight * 0.45);
  		endShape();
     }
        
                     
    
    }
}