Skip to content

Looks like toDataURL() function is disabled or not available in node-webgl #52

Open
@Prajwal99

Description

@Prajwal99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions