package oplot

  1. Overview
  2. Docs
Mathematical plotter library for ocaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.85.tar.gz
md5=53418bc8d98c25da99965f853a82dc01
sha512=ae85cd89f5ed36bce7a6c55732605ea909ad075c2376c2041d1f95ea423ca75d27ce18d28110068fc3243ea134e23f3ddab37fe671ef09a869722d0ee9581c3a

doc/oplot/Oplot/module-type-GRAPHICS/index.html

Module type Oplot.GRAPHICSSource

Sourcetype color = int
Sourcetype event =
  1. | Button_down
  2. | Button_up
  3. | Key_pressed
  4. | Mouse_motion
  5. | Poll
Sourcetype status = {
  1. mouse_x : int;
    (*

    X coordinate of the mouse

    *)
  2. mouse_y : int;
    (*

    Y coordinate of the mouse

    *)
  3. button : bool;
    (*

    true if a mouse button is pressed

    *)
  4. keypressed : bool;
    (*

    true if a key has been pressed

    *)
  5. key : char;
    (*

    the character for the key pressed

    *)
}
Sourceval open_graph : string -> unit
Sourceval close_graph : unit -> unit
Sourceval synchronize : unit -> unit
Sourceval rgb : int -> int -> int -> color
Sourceval set_line_width : int -> unit
Sourceval set_color : color -> unit
Sourceval plots : (int * int) array -> unit
Sourceval draw_poly_line : (int * int) array -> unit
Sourceval fill_poly : (int * int) array -> unit
Sourceval draw_segments : (int * int * int * int) array -> unit
Sourceval set_text_size : int -> unit
Sourceval set_font : string -> unit
Sourceval moveto : int -> int -> unit
Sourceval draw_string : string -> unit
Sourceval read_key : unit -> char
Sourceval clear_graph : unit -> unit
Sourceval size_x : unit -> int
Sourceval size_y : unit -> int
Sourceval set_window_title : string -> unit
Sourceval auto_synchronize : bool -> unit
Sourceval wait_next_event : event list -> status
Sourceval text_size : string -> int * int