Node.js drawing on screen

Zorgatone picture Zorgatone · Nov 8, 2015 · Viewed 11.5k times · Source

I've been looking all over the internet for this. I'd like to know if there is any Node.js packages/bindigs/libraries that allow you to make an application that draws on the screen without node-webkit(NW.js)/Electron or other implementations based on browsers. Maybe something that binds to opengl with support for 2D graphics?

Let me know if you know some names or links. If not I might have to write something myself.

Thank you guys.

Answer

S.D. picture S.D. · Nov 18, 2015

There is an experimental project : https://github.com/creationix/node-sdl

This basically provides bindings to the SDL library:

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.

If you can get it compiled, you can try the example scripts in nodejs.