Creates a Canvas instance. This function works in both Node.js and Web browsers, where there is no Canvas constructor.
Optional
Optionally specify to create a PDF or SVG canvas. Defaults to an image canvas.
Generated using TypeDoc
Creates a Canvas instance. This function works in both Node.js and Web browsers, where there is no Canvas constructor.