gfx.pushLayer(path); - clip by path and path.combine(mode,otherPath); demos.

Normal clip Inverse clip