package vg

  1. Overview
  2. Docs
type segment = [
  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
]
type path = segment list
val of_path : P.t -> path
type tr =
  1. | Move of Gg.v2
  2. | Rot of float
  3. | Scale of Gg.v2
  4. | Matrix of Gg.m3
val tr_to_m3 : tr -> Gg.M3.t
val inv_tr_to_m3 : tr -> Gg.M3.t
type blender = [
  1. | `Atop
  2. | `Copy
  3. | `In
  4. | `Out
  5. | `Over
  6. | `Plus
  7. | `Xor
]
type primitive =
  1. | Const of Gg.color
  2. | Axial of Gg.Color.stops * Gg.p2 * Gg.p2
  3. | Radial of Gg.Color.stops * Gg.p2 * Gg.p2 * float
  4. | Raster of Gg.box2 * Gg.raster
type glyph_run = {
  1. font : font;
  2. text : string option;
  3. o : Gg.p2;
  4. blocks : bool * (int * int) list;
  5. advances : Gg.v2 list;
  6. glyphs : glyph list;
}
type image =
  1. | Primitive of primitive
  2. | Cut of P.area * path * image
  3. | Cut_glyphs of P.area * glyph_run * image
  4. | Blend of blender * float option * image * image
  5. | Tr of tr * image
val of_image : I.t -> image
OCaml

Innovation. Community. Security.