variety of drawing
variety of basic drawing
基本的な描画色々
♥0 |
Line 12 |
Modified 2010-07-29 14:14:30 |
MIT License
archived:2017-03-20 13:32:05
ActionScript3 source code
/**
* Copyright takishiki ( http://wonderfl.net/user/takishiki )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/ruHS
*/
/*
variety of basic drawing
基本的な描画色々
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
// コンストラクタ
public function FlashTest() {
graphics.lineStyle(); // 線なし
graphics.beginFill(0xFF0000); // 塗りつぶし開始
// 四角:drawRect(左上点のx座標, 左上点のy座標, 幅, 高さ)
graphics.drawRect(10, 10, 100, 100);
// 円:drawCircle(中心のx座標, 中心のy座標, 半径)
graphics.drawCircle(200, 100, 30);
//
graphics.endFill(); // 塗りつぶし終了
}
}
}