Basic types for computer graphics in OCaml
Switch branches/tags
Clone or download
Latest commit 12fec03 Oct 23, 2018

Gg — Basic types for computer graphics in OCaml


Gg is an OCaml module providing basic types for computer graphics.

It defines types and functions for floats, vectors, points, sizes, matrices, quaternions, axis-aligned boxes, colors, color spaces, and raster data.

Gg is made of a single module, depends on bigarrays, and is distributed under the ISC license.

Home page:
Contact: Daniel Bünzli <daniel.buenzli at>


Gg can be installed with opam:

opam install gg

If you don't use opam consult the opam file for build instructions and a complete specification of the dependencies.


The documentation and API reference is automatically from the interfaces. It can be consulted online or via odig doc gg.