教材:角丸矩形を描こう!
♥0 |
Line 20 |
Modified 2010-05-28 21:03:28 |
MIT License
archived:2017-03-30 01:37:04
ActionScript3 source code
/**
* Copyright ProjectNya ( http://wonderfl.net/user/ProjectNya )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/6g2w
*/
package {
import flash.display.Sprite;
import flash.display.Shape;
public class Main extends Sprite {
private var shape:Shape;
private var color:uint = 0x000000;
public function Main() {
init();
}
private function init():void {
shape = new Shape();
addChild(shape);
shape.x = 232;
shape.y = 232;
shape.graphics.beginFill(color);
shape.graphics.drawRoundRect(-120, -90, 240, 180, 40, 40);
shape.graphics.endFill();
}
}
}