xkcd_ascii is a small program that downloads comic from xkcd.com and converts it to ASCII Art.
In order to use it, you have to install rust.
$ git clone https://github.com/flabbet/xkcd_ascii.git
$ cd xkcd_ascii
$ cargo build --release
after that go to release directory, executable is stored there.
To use it, simply type in terminal
$ xkcd_ascii
It will generate random comic with automatic, terminal size resolution. resize
parameter is optional, you can adjust res with it.
$ xkcd_ascii -s [width] [height]
example
$ xkcd_ascii -s 203 62
or
$ xkcd_ascii --resize 203 62
Id parameter is used to generate choosen comic. On xkcd.com there every comic has own unusual id found in URL.
$ xkcd_ascii -i 402
or
$ xkcd_ascii --id 402
This repo contains image to ascii generator from asciify library