context.globalCompositeOperation = "destination-out";

“destination-out” compositing uses new shapes to erase existing drawings.

The new shape is not actually drawn – it is just used as a “cookie-cutter” to erase existing pixels.

context.drawImage(apple,0,0);
context.globalCompositeOperation = 'destination-out';   // bitemark erases
context.drawImage(bitemark,100,40);

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/441843e4-0ae2-4522-81db-d3f1f268cec2/Untitled.png