Description
In node.js, using node-webgl library I define a canvas element. and all rendering takes place in that canvas. However, when I use the function canvas.toDataURL(), the error says canvas.toDataURL() as undefined.
Here is the link where I have posted the info in details with errors: [(http://stackoverflow.com/questions/39591877/canvas-todataurl-is-not-a-function-error-in-javascript-code-running-in-node)] ,
Had a doubt, am I missing something or not accessing it properly or the feature is not available now in node-webGL ? Any alternatives for the same to extract the data of canvas defined under library node-webGL ?
Note: But it canvas is defined using require('canvas'), then if some drawing is made in canvas and the function canvas.toDataURL() works under this library, unfortunately WebGL is not supported in node-canvas library.
Thanks & Regards,
Prajwal