@ivan.popelyshev How ever im facing a performance issue when trying to have large number of pieces of the puzzle. For example in below scenario 30 * 15 , the puzzle pieces moves very slowly.
I suspect its because im adding the image 30 * 15 times to the canvas . basically i create a mask for each piece using
mask.bezierCurveTo(p1x,p1y,p2x, p2y, p3x,p3y);
Then i add that to the original image texture
const bunny = new PIXI.Sprite(texture);
bunny.mask = mask;
I repeat this for every piece. Which i suspect can be the reason to the performance issue. Do you know a way of overcoming this ? Thank you