clear
clear() 清空所有路径。
实例
update: function (dt) {
    const ctx = node.getComponent(Graphics);
    ctx.clear();
    ctx.circle(200,200, 200);
    ctx.stroke();
}
clear() 清空所有路径。
update: function (dt) {
    const ctx = node.getComponent(Graphics);
    ctx.clear();
    ctx.circle(200,200, 200);
    ctx.stroke();
}