dbuenzli/gg

Basic types for computer graphics in OCaml

OCaml

40

254 commits

updated Feb 13, 2026

See the code

README

Gg — Basic types and tools for computer graphics in OCaml

%%VERSION%%

Gg provides 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.

On top of this the Gg_kit library provides a few more tools and algorithms for working with geometry and graphics.

Gg and Gg_kit have no dependencies. Gg is distributed under the ISC license. Gg_kit is distributed under the ISC license and some color schemes are distributed under the Apache 2.0 and CC0 licenses.

Home page: http://erratique.ch/software/gg

Installation

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.

Documentation

The documentation can be consulted online or via odig doc gg.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

A few basic sample programs can be found in the test directory.

dbuenzli/gg

Basic types for computer graphics in OCaml

OCaml

40

254 commits

updated Feb 13, 2026

See the code

README

Gg — Basic types and tools for computer graphics in OCaml

%%VERSION%%

Gg provides 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.

On top of this the Gg_kit library provides a few more tools and algorithms for working with geometry and graphics.

Gg and Gg_kit have no dependencies. Gg is distributed under the ISC license. Gg_kit is distributed under the ISC license and some color schemes are distributed under the Apache 2.0 and CC0 licenses.

Home page: http://erratique.ch/software/gg

Installation

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.

Documentation

The documentation can be consulted online or via odig doc gg.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

A few basic sample programs can be found in the test directory.

Significant stargazers

Louis Gesbert

151 followers · starred Apr 2014

Charles Chamberlain

81 followers · starred Feb 2019

Bryan Garza

140 followers · starred Jan 2016

Geoff deRosenroll

26 followers · starred Aug 2022