I am a big fan of pixi.js (<a href="http:&#x2F;&#x2F;www.pixijs.com" rel="nofollow">http:&#x2F;&#x2F;www.pixijs.com</a>).  I haven&#x27;t explored its &quot;erasing&quot; capabilities, but it is a great library for performant 2d graphics programming in the browser.