1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/trick2018/03-tompng/remarks.markdown
mame e613cdd53d sample/trick2018/: adds the top-five entries of TRICK 2018
See https://github.com/tric/trick2018 for TRICK 2018.
Fixes #14930.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-21 13:07:50 +00:00

19 lines
531 B
Markdown

### Remarks
Bundle install
this program depends on `gem chunky_png`
Run it with the following command:
bundle exec ruby entry.rb trick.png
bundle exec ruby entry.rb [other png file]
I confirmed the following implementations/platforms:
* ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
* ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
### Description
This program is a png image viewer.
The output is an asciiart of the given png file,
and it is also a source code of the png viewer itself.