moveTo

moveTo 表示一条路径的起点。

实例

  1. var ctx = node.getComponent(cc.Graphics);ctx.moveTo(0,0);ctx.lineTo(300,150);ctx.stroke();

绘图组件