Version 0.2, February 14, 2013
Albert Graef <Dr.Graef@t-online.de>
This is a straight wrapper of the g2 graphics library, see http://g2.sf.net/.
License: BSD-style, see the COPYING file for details.
Get the latest source from http://pure-lang.googlecode.com/files/pure-g2-0.2.tar.gz.
g2 is a simple, no-frills 2D graphics library, distributed under the LGPL. It’s easy to use, portable and supports PostScript, X11, PNG and Win32. Just the kind of thing that you need if you want to quickly knock out some basic graphics, and whipping out the almighty OpenGL or GTK/Cairo seems overkill.
To use this module, you need to have libg2 installed as a shared library (libg2.so, .dll etc.) in a place where the Pure interpreter can find it.
Documentation still needs to be written, so for the time being please see g2.pure and have a look at the examples provided in the distribution.
Run make install to copy g2.pure to the Pure library directory. This tries to guess the prefix under which Pure is installed; if this doesn’t work, you’ll have to set the prefix variable in the Makefile accordingly.
The Makefile also provides the following targets: