forked from: flash on 2016-4-18
♥0 |
Line 15 |
Modified 2016-04-19 21:35:54 |
MIT License
archived:2017-03-20 10:51:21
ActionScript3 source code
/**
* Copyright Antonio.Meneses ( http://wonderfl.net/user/Antonio.Meneses )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/467j
*/
// forked from tanaxxx0905's flash on 2016-4-18
package{
import flash.display.Sprite;
public class DrawTest2 extends Sprite{
public function DrawTest2(){
//直線を描く
var s1:Sprite = new Sprite();
s1.graphics.lineStyle(1, 0xff0000);
s1.graphics.beginFill(0xffffff);
s1.graphics.moveTo(0,200);
s1.graphics.lineTo(100, 0);
s1.graphics.lineTo(200, 200);
s1.graphics.endFill();
addChild(s1);
}
}
}