wonderfl - build flash online

How to draw a rectangle?

I could draw a Circle, by calling graphics.drawCircle
but how can I draw a Rectangle??
graphics.drawCircleを使って円を描くことはできたけど
どうやったら四角形を描けるの??

mash mash

add to favorites

Embed

Code Fullscreen

Talk

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

Favorite by

naoto5959 naoto5959 :

questionタグで質問しようぜ、のアレ

paq paq :

Good idea! mashさんがTwitterでつぶやいていた時から期待していました。

Tags

sectKeywords

Forked

ページの先頭へ戻る