Skip to content

How to use Cairo

Birch.Cairo is a nascent project to wrap the Cairo 2d graphics library for use with Birch. This allows the creation of PNG, SVG and PDF files from Birch code.

Basic functionality is available. The draw program within the MultiObjectTracking package provides an example of use, and the META.json file of the same package an example of how to link it into your own package.


Birch.Cairo is also a good example of how to wrap existing C and C++ libraries for use from Birch code.