Module Avl_draw.DrawGraphics


module DrawGraphics: DRAW
DrawGraphics provides an implementation of signature DRAW for the graphics library of Objective Caml.


type window
val draw_lines : window ->
color:Avl_draw.color -> lw:int -> Avl_draw.point list -> unit
val draw_curves : window ->
color:Avl_draw.color ->
lw:int ->
Avl_draw.point ->
(Avl_draw.point * Avl_draw.point * Avl_draw.point) list -> unit
val draw_rect : window ->
color:Avl_draw.color -> lw:int -> x:int -> y:int -> w:int -> h:int -> unit
val draw_ellipse : window ->
color:Avl_draw.color -> lw:int -> x:int -> y:int -> rx:int -> ry:int -> unit
val fill_rect : window ->
color:Avl_draw.color -> x:int -> y:int -> w:int -> h:int -> unit
val fill_ellipse : window ->
color:Avl_draw.color -> x:int -> y:int -> rx:int -> ry:int -> unit
val fill_poly : window -> color:Avl_draw.color -> Avl_draw.point list -> unit
val draw_text : window ->
color:Avl_draw.color ->
?name:string -> size:int -> x:int -> y:int -> string -> unit
val text_size : window -> ?name:string -> size:int -> string -> int * int