Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
create awesome ascii art with ruby + asciimo.js
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
ext
lib
.gitignore
.gitmodules
README.md
Rakefile
asciimo.gemspec

README.md

Asciimo.rb

A ruby wrapper around asciimo

Install

gem install asciimo

Use it from the Command Line

legolas:~ cowboyd$ asciimo -h
Usage: asciimo [options]
    -f, --font FONT                  Render TEXT with this font
    -c, --color [COLOR]              Render TEXT with this color
    -m MESSAGE                       render MESSAGE instead of STDIN
        --list-colors                List possible colors
        --list-fonts                 List possible fonts
    -h                               show help

from stdin

legolas:~ cowboyd$ asciimo 
Hello World
 _ _       _  _        _ _ _            _    _ 
| | | ___ | || | ___  | | | | ___  _ _ | | _| |
|   |/ ._>| || |/ . \ | | | |/ . \| '_>| |/ . |
|_|_|\___.|_||_|\___/ |__/_/ \___/|_|  |_|\___|

or from an argument

legolas:~ cowboyd$ asciimo -m "Hello World"
 _ _       _  _        _ _ _            _    _ 
| | | ___ | || | ___  | | | | ___  _ _ | | _| |
|   |/ ._>| || |/ . \ | | | |/ . \| '_>| |/ . |
|_|_|\___.|_||_|\___/ |__/_/ \___/|_|  |_|\___|

change the font and color

legolas:~ cowboyd$ asciimo -m "Str Wrz" --font starwars --color yellow
     _______..___________..______         ____    __    ____ .______       ________  
    /       ||           ||   _  \        \   \  /  \  /   / |   _  \     |       /  
   |   (----``---|  |----`|  |_)  |        \   \/    \/   /  |  |_)  |    `---/  /   
    \   \        |  |     |      /          \            /   |      /        /  /    
.----)   |       |  |     |  |\  \----.      \    /\    /    |  |\  \----.  /  /----.
|_______/        |__|     | _| `._____|       \__/  \__/     | _| `._____| /________|

(trust me it's yellow)

Use it from Ruby

require 'asciimo'

Asciimo.text("Star_Wars.flf", "Str Wrz", "yellow")
Something went wrong with that request. Please try again.