Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 319 Bytes

File metadata and controls

21 lines (14 loc) · 319 Bytes

close

close() 方法创建从当前点到开始点的路径。

实例

const ctx = node.getComponent(Graphics);
ctx.moveTo(20,20);
ctx.lineTo(20,100);
ctx.lineTo(70,100);
ctx.close();
ctx.stroke();


返回 Graphics 组件参考