Is it possible to create an HTML canvas without a DOM element?
You can create a new canvas element with document.createElement: var canvas = document.createElement(‘canvas’); and then get the context from it. Just make sure you set the width and height. You don’t have to add the canvas to the tree in order to make it work: DEMO But you definitely have to create that node. You … Read more