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

Port to Node.js #2

Open
piranna opened this issue May 8, 2017 · 3 comments
Open

Port to Node.js #2

piranna opened this issue May 8, 2017 · 3 comments

Comments

@piranna
Copy link

piranna commented May 8, 2017

Now that node-canvas has backends support and would allow to print directly to the screen, it would be nice to have a port of this using a node-canvas instance instead of an HTML5 canvas one (the APIs are the same in purposse) to have this working on NodeOS :-)

@ardean
Copy link
Owner

ardean commented May 8, 2017

Wow, cool idea! I'll look at it today after work.

@ardean
Copy link
Owner

ardean commented May 8, 2017

I refactored some browser specific code and now we can start jsgbc-core in the node environment.
But there will be more work for sound support, because of the use of the webaudio AudioContext. (Audio should be disabled for now with nodejs)
The controls are an other missing feature in nodejs, but should not be a huge problem.

I think a jsgbc-node package including a cli would be an appropriate solution for NodeOS.

You can checkout the new branch v0.5.0 on this repo which includes the recent changes.
There is a little sample script using nodejs.

@piranna
Copy link
Author

piranna commented May 8, 2017 via email

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