Clear
Use clear() to clear all paths.
Example
update: function (dt) {
    var ctx = node.getComponent(cc.Graphics);
    ctx.clear();
    ctx.circle(200,200, 200);
    ctx.stroke();
}
Return to Graphics component
Use clear() to clear all paths.
update: function (dt) {
    var ctx = node.getComponent(cc.Graphics);
    ctx.clear();
    ctx.circle(200,200, 200);
    ctx.stroke();
}
Return to Graphics component