# \[ANN\] Vg 9.5.0 – Declarative 2D vector graphics

**URL:** <https://discuss.ocaml.org/t/ann-vg-9-5-0-declarative-2d-vector-graphics/13922>\
**Category:** Community\
**Tags:** announce\
**Created:** [January 23, 2024, 10:35pm UTC](https://discuss.ocaml.org/t/ann-vg-9-5-0-declarative-2d-vector-graphics/13922 "2024-01-23T22:35:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dbuenzli](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/dbuenzli/32/18_2.png) [@dbuenzli](https://discuss.ocaml.org/u/dbuenzli)\
**Post date:** [January 23, 2024, 10:35pm UTC](https://discuss.ocaml.org/t/ann-vg-9-5-0-declarative-2d-vector-graphics/13922/1 "2024-01-23T22:35:03Z")

</div>

Hello,

It’s my pleasure to announce the release 0.9.5 of Vg:

> 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 library. An API allows to implement new renderers.
> 
> Vg is distributed under the ISC license.

Except for the addition of combinators to [smoothly stitch](https://erratique.ch/software/vg/demos/db_viewer#paths-smooths) Bézier paths by François Thiré, this is mostly a bureaucratic and maintenance release.

At the library level, the `Vgr_svg` module is now part of the `vg` library and the `vg.svg` library is deprecated. The `Vgr_htmlc` canvas renderer has been rewritten with [brr](https://erratique.ch/software/brr) which becomes an optional dependency of the package while the dependencies on `js_of_ocaml` and `js_of_ocaml-ppx` are dropped for good.

Ten years ago neither dark themes nor `.mld` files did exist so the [tutorial](https://erratique.ch/software/vg/doc/tutorial.html), the [semantics](https://erratique.ch/software/vg/doc/semantics.html) and the [image howto](https://erratique.ch/software/vg/doc/image_howto.html) have been slightly reworked and moved out of the Vg module documentation to their own pages and the doc images have been fixed to work in dark themes.

Read the [release notes](https://github.com/dbuenzli/vg/blob/master/CHANGES.md#v095-2024-01-23-la-forclaz-vs) for all the other changes.

Homepage: [https://erratique.ch/software/vg](https://erratique.ch/software/vg)  
API docs & manuals: [https://erratique.ch/software/vg/doc/](https://erratique.ch/software/vg/doc/)  
Install: `opam install vg` ([opam pr](https://github.com/ocaml/opam-repository/pull/25113))

Best,

Daniel

* * *

A big thanks to my [donators](https://github.com/sponsors/dbuenzli).

---

_[View the full topic](https://discuss.ocaml.org/t/ann-vg-9-5-0-declarative-2d-vector-graphics/13922)._
