package vg
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha512=ccd0d0f61cdbdb3420b5f4d747fe6e6b95e487738f70163a6e26396b1eeb9a42118306bc9c2c9afc9256171d57f81fbdf08ec558625eb5d723230aa0e9564fb6
Description
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.
Vg is distributed under the ISC license. Vg and the SVG renderer depend on Gg. The PDF renderer depends on Otfm, the HTML canvas renderer depends on Brr, the Cairo renderer depends on cairo2.
Home page: http://erratique.ch/software/vg
README
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.
Vg is distributed under the ISC license. Vg and the SVG renderer depend on Gg. The PDF renderer depends on Otfm, the HTML canvas renderer depends on Brr, the Cairo renderer depends on cairo2.
Home page: http://erratique.ch/software/vg
Installation
Vg can be installed with opam:
opam install vg # SVG renderer only
opam install brr cairo2 otfm vg # All renderersIf 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 vg.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
Sample programs
A database of test images can be found in the test/db directory. An online rendering of the database with the different backends and links to the source of images is available here
A few test programs and minimal rendering examples can be found in the test directory, see b0 list.
Dependencies (5)
-
gg
>= "1.0.0" -
topkg
build & >= "1.0.3" -
ocamlbuild
build -
ocamlfind
build -
ocaml
>= "4.14.0"
Dev Dependencies
None
Used by (4)
Build status
Results of building vg with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.9.5 (this version) | n/a | good | good | good | good |
| 0.9.4 | good | n/a | good | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure