Tree(せいさく中ー)
/**
* 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();
}
}
}