https://github.com/yskoht/aaq
Create ascii art quine from image file.
https://github.com/yskoht/aaq
quine
Last synced: 3 months ago
JSON representation
Create ascii art quine from image file.
- Host: GitHub
- URL: https://github.com/yskoht/aaq
- Owner: yskoht
- License: mit
- Created: 2018-07-15T23:50:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T06:35:01.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T06:43:28.476Z (over 1 year ago)
- Topics: quine
- Language: Ruby
- Homepage:
- Size: 631 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AAQ - Ascii Art Quine
[](https://badge.fury.io/rb/aaq)
[](LICENSE)Create ascii art quine from image file.

## Quick start with Docker
You can try aaq easily with [yskoht/aaq](https://hub.docker.com/repository/docker/yskoht/aaq).
```sh
# Download sample image
curl -O https://github-media-downloads.s3.amazonaws.com/Octocats.zip && unzip Octocats.zip# Mount current directory to read image file
docker run --rm -v $(pwd):/root yskoht/aaq aaq Octocat/Octocat.png --color
```## Installation
```sh
$ gem install aaq
```## Usage
Simple quine.
```sh
aaq Octocat/Octocat.png
```Colorful quine.
```sh
aaq Octocat/Octocat.png --color
```Delete escape sequence.
```sh
aaq Octocat/Octocat.png --color | ruby -ne 'puts $_.gsub(/\e.*?m/, "")' | ruby
```Put `--color` option.
```sh
aaq Octocat/Octocat.png | xargs -0 -J % ruby -e % '' --color
```In your source code.
```ruby
require 'aaq'puts AAQ::AAQ.new(img_file_name).convert
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yskoht/aaq.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).