flash on 2009-10-30

by yabuchany
普通にAS3の書き方でFrocessingしてみる
♥0 | Line 14 | Modified 2009-10-30 05:18:47 | MIT License
play

ActionScript3 source code

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

// 普通にAS3の書き方でFrocessingしてみる
package {
	import flash.display.Sprite;
	
	import frocessing.core.*;
	import frocessing.display.*;
	
	[SWF(width=465,height=465,backgroundColor=0)]
	public class SketchSample extends Sprite{
		
		public function SketchSample() {
			var fg:F5MovieClip2D = new F5MovieClip2D();
			fg.rectMode(F5C.CENTER);	// 四角形の左上角と幅高さで指定
			fg.rect(0,0,150,150);
			addChild(fg);
		}
	}    
}