画布这个组件忙,重叠部分处理一下有没有这样的api 呀,

画两个图形,让他们的重叠部分处理一下有没有这样的api 呀,
var node = this.node
this.graphics = node.addComponent(cc.Graphics)
this.zh_x = this.node.x + 960 / 2
this.zh_y = this.node.y + 640 / 2
this.graphics.rect(this.zh_x, this.zh_y, 960, 640) //重叠的话做一个中间掏空的效果
this.graphics.rect(this.zh_x, this.zh_y, 1000, 1000)
this.graphics.stroke()
this.graphics.fill()

层叠消融?

楼主实现了吗?求分享

不是很好做??rect计算重叠的部分,返会rect,自己再做个掏空效果