Hacker News new | ask | show | jobs
by swix 3048 days ago
Canvas and webgl is lovely in the way it quickly lets you get something on the screen... Pixel pushing on canvas is, easy and accessible.

It makes me wonder if anyone has created some sort of port to a standalone app with no browser involved where you could use javascript/canvas-api/webgl to draw pixels on a canvas-like surface... without the fatness of the browser. Just spawning some window, that would be a lovely scripting/game-dev environment, maybe with some sdl-bindings or whatever. Anyway just rambling, does such a project exist? Anyone knows? :)

3 comments

I think you meant this, love2d running in the browser.

http://tannerrogalsky.com/mari0/

I built exactly that a few years ago: V8 with WebGL bindings that passed through to OpenGL ES. It was to enable WebGL experiences on the GearVR, where a full browser wouldn't cut it.

I've got sample using an OS X window but it should be easy enough to do the same for Windows

It's been sitting in a private repo since then but I can give you access if you'd like

That being said, I think a better alternative for a thin graphics scripting environment would be haxe with Lime or snowkit (which provides OpenGL, SDL and windowing). I've used these in the past and loved working then

Canvas was introduced and inspired by Apple's drawing tech, so you might want to check that.