ASCII

Convert images into ASCII.


Source: pkg/lua/lib/ascii.go | Import: ascii

Functions


to_file

to_file(id, path, color?, reverse?)

Arguments

  • id int<collection.IMAGE> - Image to convert to ascii.
  • path string - Directories to file must exist.
  • color bool - Enable only for terminal dislay.
  • reverse bool
to_file_size

to_file_size(id, path, width, height, color?, reverse?)

Arguments

  • id int(collection.IMAGE) - Image to convert to ascii.
  • path string - Directories to file must exist.
  • width int
  • height int
  • color bool - Enable only for terminal dislay.
  • reverse bool
to_string

to_string(id, color?, reverse?) -> string

@blocking
Arguments

  • id int(collection.IMAGE) - Image to convert to ascii.
  • color bool - Enable only for terminal dislay.
  • reverse bool
Return Values

  • string - The generated ASCII art, rows separated with \n.
to_string_size

to_string_size(id, width, height, color?, reverse?) -> string

@blocking
Arguments

  • id int(collection.IMAGE) - Image to convert to ascii.
  • width int
  • height int
  • color bool - Enable only for terminal dislay.
  • reverse bool
Return Values

  • string - The generated ASCII art, rows separated with \n.
to_string_matrix

to_string_matrix(id, color?, reverse?) -> []string

@blocking
Arguments

  • id int(collection.IMAGE) - Image to convert to ascii.
  • color bool - Enable only for terminal dislay.
  • reverse bool
Return Values

  • []string - The generated ASCII art.
to_string_matrix_size

to_string_matrix_size(id, width, height, color?, reverse?) -> []string

@blocking
Arguments

  • id int(collection.IMAGE) - Image to convert to ascii.
  • width int
  • height int
  • color bool - Enable only for terminal dislay.
  • reverse bool
Return Values

  • []string - The generated ASCII art.