Console-based Pixel Editor (#231)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

The three rules of Ruby Q.:

  1. Please do not post any solutions or spoiler discussion for this
    quiz until 48 hours have elapsed from the time this message was
    sent.

  2. Support Ruby Q. by submitting ideas and responses
    as often as you can.

  3. 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: http://github.com/elliottcable/ncurses
HighLine: http://highline.rubyforge.org/doc/

Have fun!

There were no submitted solutions for this week’s quiz, maybe consoles
and pixels weren’t meant to be. Perhaps next time we’ll try a console
based ascii art editor.

Could you give us some hints…

  1. Does one just read an image file in binary mode (r+)
    Or would i need a jpeg reader or png reader for that.

    I don;t want my terminal getting messed up as would happen if did a
    `cat x.jgp’.

  2. Identifying RGB ?

Sorry for the confusion. I meant to say that quiz #231 Console-based
Pixel Editor has ended with no responses. Though in the future, as a
new quiz (not in this thread), we may revisit a similar but distinct
topic.

On Wed, Jul 14, 2010 at 9:18 PM, R… Kumar 1.9.1 OSX

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs