package vg
Declarative 2D vector graphics for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
vg-0.9.5.tbz
sha512=ccd0d0f61cdbdb3420b5f4d747fe6e6b95e487738f70163a6e26396b1eeb9a42118306bc9c2c9afc9256171d57f81fbdf08ec558625eb5d723230aa0e9564fb6
doc/index.html
Vg v0.9.5
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, the HTML canvas and Cairo are distributed with the library. An API allows to implement new renderers.
Manuals
These manuals are available:
- The tutorial is a conceptual overview of the library. It is recommended reading.
- The semantics has the notations and definitions which give precise meaning to images and their combinators.
- The image howto has minimal setup examples to render images.
Library vg
Libraries vg.{cairo,htmlc,pdf}
Each of these modules is in its own library as they entails more dependencies.
Vgr_cairo
Vgr_htmlc
Vgr_pdf
PDF renderer.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page