Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting canvas from electron #4

Open
rastographics opened this issue May 30, 2020 · 1 comment
Open

Getting canvas from electron #4

rastographics opened this issue May 30, 2020 · 1 comment

Comments

@rastographics
Copy link

@benjaminadk You mention in the readme about getting an instance of canvas right from electron (instead of importing the canvas npm package).

Do you have an example of how to do that? I can't find any examples on the web on how to do this.

@benjaminadk
Copy link
Owner

benjaminadk commented May 30, 2020

@rastographics - I just re-read the readme. So when I cobbled this together I was playing around with a GIF editor/recorder desktop built on top of electron - with a React UI - checkout the encoders here for some examples Electron Examples . You can also use FFMPEG to encode GIFs and it is by far the fastest, if I remember. That file is in there as well. Basically, all I mean by is that within Electron you have access to the Canvas API that, because you have access to the browser. As opposed to a typical Node app where there is no direct access to browser apis. Let me know if you have any questions about the code I linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants