package graphv_webgl

  1. Overview
  2. Docs

Draw shapes.

val begin_ : t -> unit
val close : t -> unit
val move_to : t -> x:float -> y:float -> unit
val line_to : t -> x:float -> y:float -> unit
val bezier_to : t -> c1x:float -> c1y:float -> c2x:float -> c2y:float -> x:float -> y:float -> unit
val quad_to : t -> cx:float -> cy:float -> x:float -> y:float -> unit
val rect : t -> x:float -> y:float -> w:float -> h:float -> unit
val winding : t -> winding:Winding.t -> unit
val arc : t -> cx:float -> cy:float -> r:float -> a0:float -> a1:float -> dir:Winding.t -> unit
val arc_to : t -> x1:float -> y1:float -> x2:float -> y2:float -> radius:float -> unit
val ellipse : t -> cx:float -> cy:float -> rx:float -> ry:float -> unit
val circle : t -> cx:float -> cy:float -> r:float -> unit
val rounded_rect : t -> x:float -> y:float -> w:float -> h:float -> r:float -> unit
val rounded_rect_varying : t -> x:float -> y:float -> w:float -> h:float -> top_left:float -> top_right:float -> bot_left:float -> bot_right:float -> unit
OCaml

Innovation. Community. Security.