g2 0.72 review

Download
by rbytes.net on

g2 is an easy to use, portable and powerful 2D graphics library

License: LGPL (GNU Lesser General Public License)
File size: 0K
Developer: Ljubomir Milanovic
0 stars award from rbytes.net

g2 is an easy to use, portable and powerful 2D graphics library. The project provides a comprehensive set of functions for simultaneous generation of graphical output on different types of devices.

Following devices are currently supported: PostScript, X11, PNG and JPEG (using gd) and Win32 (xfig is in development). g2 is written in C (ANSI) and additionally has a Fortran, perl and python interface.

g2 is easy to use

in C

d=g2_open_X11(50,50);
g2_line(d,5,5,45,45);
g2_circle(d,25,25,20);

in Fortran

d=g2_open_X11(50.0,50.0)
call g2_line(d,5.0,5.0,45.0,45.0)
call g2_circle(d,25.0,25.0,20.0)

in perl

$d=new X11G2::Device(50,50);
$d->line(5,5,45,45);
$d->circle(25,25,20);

in python

graph = g2.g2_open_X11(50, 50)
graph.g2_line(5, 5, 45, 45)
graph.g2_circle(25, 25, 20)

What's New in This Release:
The Python module build process has been fixed.

g2 0.72 search tags