g2 graphical library

beta
5.0 Stars (1)
22 Downloads (This Week)
Last Update:
Download g2-0.72.tar.gz
Browse All Files
Windows BSD Linux

Screenshots

Description

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

g2 graphical library Web Site

Update Notifications





User Ratings

★★★★★
★★★★
★★★
★★
1
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
Write a Review

User Reviews

  • fda-75
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    "g2 graphical library"is just what I needed for the very simple graphic needs I have, basically the very same ones than on my old IBM PC/XT, but with the possibilities of contemporary screens. Took me about 90 minutes to get used to it, though I am not mastering the fonts and font sizes yet (seems to use a resource file, but I have not used them for years !) I used that (cloned from a simpler example on the Net) and modified it as a test : include <stdio.h> #include <stdlib.h> #include <g2.h> #include <g2_X11.h> #include <g2_PS.h> main() { int i,j; int id, id1, id2; // Ouverture d'une fenêtre de travail id1 = g2_open_X11(1000, 1000); // Si on désire une version poscript aussi, on décommentera // id2 = g2_open_PS("test.ps", g2_A4, g2_PS_land); id2 = g2_open_EPSF("test.ps"); id = g2_open_vd(); g2_attach(id, id1); g2_attach(id, id2); g2_rectangle(id, 10, 10, 990, 990); g2_set_font_size(id, 64); g2_string(id, 20, 420, "g2 text"); g2_pen(id, 19); for (i=0; i<35; ++i) { for(j=0; j<35; ++j) { g2_set_line_width(id, 2); g2_rectangle(id, 100+20*i, 100+20*j, 100+20*(i+1), 100+20*(j+1)); // Remove the two following lines to see how fast g2 id ! g2_flush(id); sleep(1); } } g2_pen(id, 3); g2_filled_circle(id, 160, 220, 120); printf("Press Return to exit program. "); getchar(); g2_close(id); } and run it with that script : fda@onyx-u64:~go> cat g2 #! /bin/bash # Exécution d'un programme utilisant la bibliothèque graphique g2 cc {dollar1}.c -L/usr/local/lib -lg2 -L/usr/X11R6/lib -lm && ./a.out fda@onyx-u64:~go>

    Posted 09/17/2013
Read more reviews

Additional Project Details

Languages

English

Intended Audience

Developers, Science/Research

User Interface

Win32 (MS Windows), X Window System (X11)

Programming Language

C, C++, Fortran, Perl, Python

Registered

2000-02-02

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.