-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.mli
38 lines (30 loc) · 896 Bytes
/
Application.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module Defaults: sig
val balls: int
val max_speed: float
val min_radius: float
val max_radius: float
val min_density: float
val max_density: float
val velocity_vectors: bool
val previous_positions: int
end
module Make(C: JsOfOCairo.S): sig
type t
val create:
dimensions:int * int
-> balls:int -> max_speed:float
-> min_radius:float -> max_radius:float
-> min_density:float -> max_density:float
-> velocity_vectors:bool -> previous_positions:int
-> t
val date: t -> float
val randomize: t
-> balls:int -> max_speed:float
-> min_radius:float -> max_radius:float
-> min_density:float -> max_density:float
-> unit
val resize: t -> dimensions:int * int -> unit
val set_display: t -> velocity_vectors:bool -> previous_positions:int -> unit
val advance: t -> date:float -> unit
val draw: t -> context:C.context -> unit
end