Light-weight ASCII art generator
ASCII Arty is a little ASCII art generator that uses the Figlet library. Just feed it a string and it'll create a fancy ASCII art image.
Figlet font library
# Basic usage (cli) $ artii 'Art!' # => _ _ # => /\ | | | | # => / \ _ __| |_| | # => / /\ \ | '__| __| | # => / ____ \| | | |_|_| # => /_/ \_\_| \__(_) # => # To use a different font $ artii 'Art!' --font slant # => ___ __ __ # => / | _____/ /_/ / # => / /| | / ___/ __/ / # => / ___ |/ / / /_/_/ # => /_/ |_/_/ \__(_) # => # Integrated usage a = Artii::Base.new :font => 'slant' a.asciify('Art!') # => ___ __ __ # => / | _____/ /_/ / # => / /| | / ___/ __/ / # => / ___ |/ / / /_/_/ # => /_/ |_/_/ \__(_) # =>
(sudo) gem install artii
CLI should support “-v” or “–version” (or both) option to print out currently active Artii version
Allow integrated objects to accept a print out a pre-defined text value
Ability to load non *.flf files (fonts are available, .flc file-types seem to be an issue right now)
Ability to set custom configurations, so you don't have to constantly set the options (like font) unless you want to
Some nice built-in utilities (to make for easier demoing)
Font list should show samples of the faces in addition to the names
Font list should be able to show a given range (fonts starting with specific letters, or a range of letters)
Font list should be searchable (a la grep)
Font list needs to be generated from <strike>a) included fonts</strike> and b) a user-specified location (see To Do about custom configurations)
Note on Patches/Pull Requests
Fork the project.
Make your feature addition or bug fix.
Add tests for it. This is important so I don't break it in a future version unintentionally.
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
Send me a pull request. Bonus points for topic branches.
(The MIT License)
Copyright © 2010 Michael Tierney
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.