-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The three rules of Ruby Q.:
-
Please do not post any solutions or spoiler discussion for this
quiz until 48 hours have elapsed from the time this message was
sent. -
Support Ruby Q. by submitting ideas and responses
as often as you can. -
Enjoy!
Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby T. follow the discussion. Please reply to
the original quiz message, if you can.
RSS Feed: http://rubyquiz.strd6.com/quizzes.rss
Suggestions?: http://rubyquiz.strd6.com/suggestions
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Console-based Pixel Editor (#231)
Your challenge is to create a text-mode, character-based application
for editing images. The minimum functionality required is the ability
to navigate to an arbitrary pixel in the image, and set the pixel’s
color to an arbitrary RGB value. For extra credit you may wish to
include an alpha channel, a brush tool (with multiple sizes), a clone
stamp tool, a scripting interface, and anything else within or beyond
your wildest dreams.
Some tools that may be of use:
ncurses gem: GitHub - ELLIOTTCABLE/ncurses: ‹ᴜɴᴍᴀɪɴᴛᴀɪɴᴇᴅ› A Ruby module for accessing the ncurses library
HighLine: http://highline.rubyforge.org/doc/
Have fun!