I work with clip () in canvas.
I made an area for the clip () as below
this.svgRenderer.ctx.rect(positionX, positionY, Width, Height);
this.svgRenderer.ctx.clip();
After painting a little on the same canvas, I try to remove the clip for this region using save () and restore ().
But I am making mistakes and cannot understand this. Therefore, suggest any other way to remove the clip for the specified area without using save () and restore ()
source
share