How to draw a rectangle?
I could draw a Circle, by calling graphics.drawCircle
but how can I draw a Rectangle??
graphics.drawCircleを使って円を描くことはできたけど
どうやったら四角形を描けるの??
- forked:18
- favorite:2
- lines:9
- license : All rights reserved
- modified : 2009-03-30 16:30:06
replace line 14 with - graphics.drawRectangle(10,10,100,100);
dont forget to to add endFill() after drawing.
e.g.
graphics.beginFill(0xFF0000); // start drawing in red color,
graphics.drawRectangle(10,10,100,100);
graphics.endFill();
// end of drawing.
- by
irevol
- at 2009/07/23 19:29:10
questionタグで質問しようぜ、のアレ
paq
:
Good idea! mashさんがTwitterでつぶやいていた時から期待していました。


