It seems that HTML elements are drawn in front of the canvas and so when I do a canvas snapshot the HTML elements are not taken into account.
Is there some way of doing this?
Develop games in your browser. Powerful, performant & highly capable.