libtwombly is a basic 2d vector graphics library for C99 and C++11. It provides a familiar interface for drawing on images using paths, transforms, strokes, fills, gradients, text, images, etc...
It it based on a lightly modified version of the Anti-Grain Geometry library (version 2.4) and is meant to provide an API similar to cairo or HTML5 canvas.
libtwombly
is actively tested on OSX, Linux, FreeBSD and OpenBSD.
GNU Make is required
For the default configuration just run, all dependencies(except libtiff) must be available via pkg-config:
make
make install
To disable FreeType:
make freetype=no
Building will compile both libtwombly
and libagg
libraries.
To install the python ctypes wrapper:
python setup.py install
or
pip install git+https://github.com/zshipko/libtwombly.git
See the examples or https://zshipko.github.io/libtwombly for more detailed information.
To build and run an example:
cd examples
make circles-run