Page 1 of 1

Graphics Library

Posted: Mon Dec 05, 2016 12:36 pm
by 300baud
Hi Pi People,

I'm new to Pi and getting underway with a small home automation project. I purchased the Pi3 and Pi touchscreen and have installed raspbian running CLI. I'd like to develop a graphical user interface but keep CLI if that makes sense (to keep the OS smaller - eventually). I've developed with ncurses before, but that seems like a waste with such a nice screen. I'm going to code this project using node.js - I'm familiar with this tech and not really wanting to learn python, but this is not out of the question. What choices in graphics libraries do I have? GTK looks like a possibility. Anything else out there that I should consider?

Note: I've just found this viewtopic.php?f=67&t=160633 which has some options... but if there are more ...

Much thanks!

Re: Graphics Library

Posted: Mon Dec 05, 2016 12:53 pm
by topguy
For node.js "canvas" seems to be suitable.
viewtopic.php?t=122467&p=826514 / https://github.com/luismreis/node-openvg-canvas
The OpenVG support should make it really fast, but you have to draw everything from scratch, no predefined buttons and menus and such.
And no inbuilt mouse/touch support so using https://www.npmjs.com/package/node-mouse is probably also needed.

Or learn Python and use Kivy.