https://github.com/flabbet/xkcd_ascii
xkcd Comics to Ascii converter
https://github.com/flabbet/xkcd_ascii
Last synced: about 1 year ago
JSON representation
xkcd Comics to Ascii converter
- Host: GitHub
- URL: https://github.com/flabbet/xkcd_ascii
- Owner: flabbet
- License: mit
- Created: 2019-12-10T21:18:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-02T19:06:12.000Z (over 6 years ago)
- Last Synced: 2025-02-14T07:47:44.833Z (over 1 year ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# What is it?
xkcd_ascii is a small program that downloads comic from xkcd.com and converts it to ASCII Art.
# Showcase
[](https://asciinema.org/a/287527)
# Installing
In order to use it, you have to install [rust](https://asciinema.org/a/287527).
```
$ 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.
# Usage
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
Id parameter is used to generate choosen comic. On xkcd.com there every comic has own unusual id found in URL.
### Usage
```
$ xkcd_ascii -i 402
or
$ xkcd_ascii --id 402
```
# Notice
This repo contains image to ascii generator from [asciify library](https://github.com/edelsonc/asciify)