package miaou-driver-sdl

  1. Overview
  2. Docs

Module Miaou_driver_sdl.Sdl_transitionsSource

Sourcemodule Sdl = Tsdl.Sdl
Sourcemodule Ttf = Tsdl_ttf.Ttf
Sourcemodule Colors = Sdl_colors
Sourcetype config = {
  1. fg : Colors.color;
  2. bg : Colors.color;
  3. gradient : bool;
  4. scale : float;
  5. transition : [ `None | `Slide | `Fade | `Explode | `Random ];
}
Sourceval slide : Sdl.renderer -> 'a -> 'b -> 'c -> 'd -> from_lines:string list -> to_lines:string list -> size:LTerm_geom.size -> draw_background:(unit -> unit) -> render_lines: (?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit) -> unit
Sourceval fade : Sdl.renderer -> 'a -> config -> int -> int -> from_lines:string list -> to_lines:string list -> size:LTerm_geom.size -> draw_background:(unit -> unit) -> render_lines: (?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit) -> unit
Sourceval fade_soft : Sdl.renderer -> 'a -> config -> int -> int -> from_lines:string list -> to_lines:string list -> size:LTerm_geom.size -> draw_background:(unit -> unit) -> render_lines: (?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit) -> unit
Sourceval explode : Sdl.renderer -> 'a -> config -> int -> int -> from_lines:string list -> to_lines:string list -> 'b -> draw_background:(unit -> unit) -> render_lines: (?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit) -> unit
Sourceval pick_random : unit -> [> `Explode | `Fade | `Slide ]
Sourceval perform : Sdl.renderer -> 'a -> config -> int -> int -> from_lines:string list -> to_lines:string list -> size:LTerm_geom.size -> draw_background:(unit -> unit) -> render_lines: (?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit) -> unit