This library is made for use in my own artistic practise, and comes with no guarnatees of quality. It is heavly influenced by Processing, but at the time has no functionality for real time graphics and no 3D graphics functionality.
It's primary use is for generating still images with 2D graphics, and functionality is implemented as I need it.
The state of the whole thing is not really userfriendly at the moment, but hopefully that will improve in the future.
| Library | Version | License | 
|---|---|---|
| Cairo | 1.14.x | LGPL/MPL | 
| Freetype 2 | 2.10.1 | Freetype project License | 
| SDL | 2.x | zlib | 
| libjpeg-turbo | 2.0.3 | |
| libpng | 1.6.37 | PNG Reference Library License version 2 | 
| Catch2 | 2.13.7-1 | BSL-1.0 | 
Using Meson
meson build
ninja -C buildninja -C build installninja -C build testmake ./examples/graphics/piechartA very simple example
#include <pyro/pyro.h>
using namespace Pyro
int main(int argc, char **argv) {
    size(1920, 1080);
    translate(width / 2, height / 2);
    ellipse(0, 0, 50, 50);
    save("test.png");
}Save as mytest.cpp, do a make mytest, and you should have an executable.
Some tests have been implemented using Catch2
If you run make install at the moment, it is just doing some dumb stuff to get it installed on Mac.
You can then compile and link a file with something like:
g++ -MMD -MP -lpyro -std=c++17 somefile.cpp
- Write a better install target
 - Make a configure script?
 - Write some abstraction to make possible different backends for rendering
 
fonts/Orkney *.otf is used under the OFL license.
tests/alley.jpg and tests/ducks.jpg is copyrighted by Greger Stolt Nilsen, used with permission as test data for this library, and can only be distributed as such.