Vg — Declarative 2D vector graphics for OCaml
Vg is a declarative 2D vector graphics library. Images are values that denote functions mapping points of the cartesian plane to colors and combinators are provided to define and compose them.
Renderers for PDF, SVG, Cairo and the HTML canvas are distributed with the module. An API allows to implement new renderers.
Home page: http://erratique.ch/software/vg
Vg can be installed with
opam install vg # SVG renderer only
opam install brr cairo2 otfm vg # All renderers
If you don't use
opam consult the
opam file for build instructions and a complete specification of the dependencies.
The documentation can be consulted online or via
odig doc vg.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
A few test programs and minimal rendering examples can be found in the
test directory, see