package picasso

  1. Overview
  2. Docs
Abstract elements drawing library

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.tar.gz
md5=d6028ccae6933bf903f34137c335f5ce
sha512=d8adf3324a27f016d0f6a08ff4afa714185c31e6dcf176e36053564c5e66e3cb734115e11ce6b68a7ed118291ef47f108efea3e3a2272e35b946661ea88e5eff

Description

A toolbox for drawing abstract elements

Published: 27 Jun 2023

README

Picasso

Picasso is an Abstract element drawing library which provides several ways of drawing abstract elements.

Visualization of abstract element poses two practical problems:

  • abstract elements may be unbounded, are generally defined on more than 2 dimensions, thus rendering them in a 2d context can be difficult.

  • managing graphical libraries can be really painful (especially in OCaml) and requires unnecessary efforts.

Picasso solves these issues by providing functions that handle most of the boilerplate you usually write to draw abstract elements and also tries to use already installed graphical libraries instead of requiring heavy dependencies.

Documentation

you can build it locally by doing make doc or consult the online documentation

Different Abstract Domains

Picasso handles non-necessarily convex linear spaces of several dimensions, bounded or not. It provides utilities to draw abstract element of the Apron library in a straightforward way, plus some other ways of defining drawable values (see the Drawable module).

Dependencies and build

Picasso can use different graphical library without imposing heavy dependencies for the end-user. It uses the opam optional dependency feature, along with dune's alternative dependencies, to look for available graphical library on your system to use those. If none of the graphical library is available, Picasso still generates a .SVG file. Also note that using opam while installing a new graphical package, picasso will be recompiled automatically make the new library usable.

Current backends include:

  • interactive Gtk window. It is the prefered way of vizualisation of Picasso. It features scrolling, zooming/unzooming, and dynamic changing of the variables of projection)

  • Non-interractive graphics window

  • SVG generation

  • LaTex generation (using TikZ)

  • 3D .obj file generation (you can use g3dviewer, among others, to visualize the 3d model)

Dependencies (4)

  1. apron
  2. apronext >= "1.0.3"
  3. ocaml >= "4.08"
  4. dune >= "2.1"

Dev Dependencies

None

Used by (2)

  1. absolute >= "0.3"
  2. libabsolute

Conflicts

None

OCaml

Innovation. Community. Security.