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