Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hswick/escape-artist
Escape Sequence Terminal Art Generator
https://github.com/hswick/escape-artist
Last synced: 6 days ago
JSON representation
Escape Sequence Terminal Art Generator
- Host: GitHub
- URL: https://github.com/hswick/escape-artist
- Owner: hswick
- Created: 2015-02-18T05:21:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-18T05:31:53.000Z (over 9 years ago)
- Last Synced: 2023-02-28T08:05:44.158Z (over 1 year ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Escape Artist is a small Ruby program that reads in a text file
and generates terminal art using escape sequences.To get started open up a repl:
irb(main):001:0> require_relative 'escape_reader'
irb(main):002:0> er = EscapeReader.new
irb(main):003:0> er.test_run
To generate a picture from a single string:
puts(er.parse_color("krgybmce"))
To generate a picture from a file:
er.parse_color_file("flower.txt")