On this page:
1.1 Structs
_  ansilove_  png
ansilove_  png
_  ansilove_  ctx
ansilove_  ctx
_  ansilove_  options
ansilove_  options
1.2 Functions
ansilove_  error
ansilove_  init
ansilove_  loadfile
ansilove_  ansi
ansilove_  artworx
ansilove_  binary
ansilove_  icedraw
ansilove_  pcboard
ansilove_  tundra
ansilove_  xbin
ansilove_  savefile
ansilove_  clean
1.3 Placeholders
ansilove_  ctx-placeholder
ansilove_  options-placeholder
8.12

1 Libansilove Low-level bindings🔗ℹ

 (require libansilove/libansilove) package: libansilove

1.1 Structs🔗ℹ

value

_ansilove_png : ctype?

struct

(struct ansilove_png (*buffer length))

  *buffer : number?
  length : number?

value

_ansilove_ctx : ctype?

struct

(struct ansilove_ctx (*buffer maplen length png error))

  *buffer : number?
  maplen : number?
  length : number?
  png : ansilove_png
  error : number?

value

_ansilove_options : ctype?

struct

(struct ansilove_options (diz
    dos
    icecolors
    truecolor
    columns
    font
    bits
    mode
    scale_factor))
  diz : boolean?
  dos : boolean?
  icecolors : boolean?
  truecolor : boolean?
  columns : number?
  font : number?
  bits : number?
  mode : number?
  scale_factor : number?

1.2 Functions🔗ℹ

procedure

(ansilove_error ctx)  string?

  ctx : ansilove_ctx

procedure

(ansilove_init ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_loadfile ctx string)  void?

  ctx : ansilove_ctx
  string : string?

procedure

(ansilove_ansi ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_artworx ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_binary ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_icedraw ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_pcboard ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_tundra ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_xbin ctx options)  void?

  ctx : ansilove_ctx
  options : ansilove_options

procedure

(ansilove_savefile ctx string)  void?

  ctx : ansilove_ctx
  string : string?

procedure

(ansilove_clean ctx)  void?

  ctx : ansilove_ctx

1.3 Placeholders🔗ℹ

procedure

(ansilove_ctx-placeholder)

  (ansilove_ctx 0 0 0 (ansilove_png 0 0) 0)
Produces a default ansilove_ctx struct.

procedure

(ansilove_options-placeholder)

  (ansilove_options #f #f #f #f 80 1 8 1 1)
Produces a default ansilove_options struct.