可以使用一個Vector.< int >和一個Vector.< number >儲存GraphicsPathCommand和座標
再利用drawPath(command,path) method執行DRAWING API
可以把Vector想像成一個儲存區(和Array不同的是Vector不需要做Casting的動作)
好處是可以利用push replace slice等Array的method去增加置換或刪除
這在建立大量使用DRAWING API的時候很有用
如果只是畫個圓形方形的話他就是雞肋0..0
練習
點擊滑鼠增加錨點 拖曳到右下方放開刪除錨點
source code