package picasso

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module for 2d drawing of abstract elements, handles the 'camera' settings, 2D projection, and some graphical options

type t

Type of 2D scenes

val create : ?title:string -> ?padding:float -> ?grid:bool -> ?axis:bool -> abciss:string -> ordinate:string -> float -> float -> t

Initalizes an empty 2d scenes.

val add : ?autofit:bool -> t -> (Colors.t * Drawable.t) -> t

Registers an abstract element, associated to a color, into a scene. Automatically changes the camera settings to encompass the newly added abstract element. You can cancel this behaviour by settings the optional argument autofit to false

val translate : (float * float) -> t -> t

Camera settings

val scale : t -> float -> t
OCaml

Innovation. Community. Security.