This is a library that creates pixel images with a vector-oriented graphics library that emulates a subset of the M_draw vector graphics library. It is supplemented with additional modules that read and write GIF files, including animated GIFs.
The user may supplement the routines by directly manipulating the pixel map as well.
git clone https://github.com/urbanjost/M_pixel.git
cd M_pixel/src
# change Makefile if not using one of the listed compilers
# for gfortran
make clean
make F90=gfortran gfortran
# for ifort
make clean
make F90=ifort ifort
# for nvfortran
make clean
make F90=nvfortran nvfortran
This will compile the Fortran and basic example programs that exercise the routines.
-
an index to the individual man-pages in HTML form
-
A single page that uses javascript to combine all the HTML descriptions of the man-pages is at BOOK_M_pixel.
-
CHANGELOG provides a history of significant changes
There are
- man-pages in docs/manpages.tgz and docs/manpages.zip
- demo programs in the example/ directory
- applications in the app/ directory
There are no automated unit tests per-se. Running the example programs and demo programs ensures the library is functioning.
There are a collection of higher-level routines that need added, as well as more font support, and antialiasing and basic pixel operations (the library currently primarily provides two-dimensional vector-like commands).
An example program using this low-level library to generate higher-level graphics: