package vg

  1. Overview
  2. Docs
type cap = [
  1. | `Butt
  2. | `Round
  3. | `Square
]
type join = [
  1. | `Bevel
  2. | `Miter
  3. | `Round
]
type dashes = float * float list
type outline = {
  1. width : float;
  2. cap : cap;
  3. join : join;
  4. miter_angle : float;
  5. dashes : dashes option;
}
val o : outline
val pp_outline : Format.formatter -> outline -> unit
type area = [
  1. | `Aeo
  2. | `Anz
  3. | `O of outline
]
val pp_area : Format.formatter -> area -> unit
type t = path
val empty : path
val sub : ?rel:bool -> Gg.p2 -> path -> path
val line : ?rel:bool -> Gg.p2 -> path -> path
val qcurve : ?rel:bool -> Gg.p2 -> Gg.p2 -> path -> path
val ccurve : ?rel:bool -> Gg.p2 -> Gg.p2 -> Gg.p2 -> path -> path
val earc : ?rel:bool -> ?large:bool -> ?cw:bool -> ?angle:float -> Gg.size2 -> Gg.p2 -> path -> path
val close : path -> path
val circle : ?rel:bool -> Gg.p2 -> float -> path -> path
val ellipse : ?rel:bool -> ?angle:float -> Gg.p2 -> Gg.size2 -> path -> path
val rect : ?rel:bool -> Gg.box2 -> path -> path
val rrect : ?rel:bool -> Gg.box2 -> Gg.size2 -> path -> path
val last_pt : path -> Gg.p2
val append : path -> path -> path
val tr : Gg.m3 -> path -> path
type fold = [
  1. | `Ccurve of Gg.p2 * Gg.p2 * Gg.p2
  2. | `Close
  3. | `Earc of bool * bool * float * Gg.size2 * Gg.p2
  4. | `Line of Gg.p2
  5. | `Qcurve of Gg.p2 * Gg.p2
  6. | `Sub of Gg.p2
]
val fold : ?rev:bool -> ('a -> fold -> 'a) -> 'a -> path -> 'a
val is_empty : path -> bool
val equal : path -> path -> bool
val equal_f : (float -> float -> bool) -> path -> path -> bool
val compare : path -> path -> int
val compare_f : (float -> float -> int) -> path -> path -> int
val to_string : path -> string
val pp : Format.formatter -> path -> unit
val pp_f : (Format.formatter -> float -> unit) -> Format.formatter -> path -> unit
OCaml

Innovation. Community. Security.