Project

aaq

0.01
No commit activity in last 3 years
No release in over 3 years
Create ascii art quine from image file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.2.33
~> 12.3.3
~> 3.0
~> 0.58

Runtime

~> 2.16
 Project Readme

AAQ - Ascii Art Quine

Gem Version MIT License

Create ascii art quine from image file.

Demo.gif

Quick start with Docker

You can try aaq easily with yskoht/aaq.

# 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

$ gem install aaq

Usage

Simple quine.

aaq Octocat/Octocat.png

Colorful quine.

aaq Octocat/Octocat.png --color

Delete escape sequence.

aaq Octocat/Octocat.png --color | ruby -ne 'puts $_.gsub(/\e.*?m/, "")' | ruby

Put --color option.

aaq Octocat/Octocat.png | xargs -0 -J % ruby -e % '' --color

In your source code.

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.