[QUIZ] Console-based Pixel Editor (#231)

D

Daniel Moore

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

The three rules of Ruby Quiz:

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 Quiz 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 Talk 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!
 
D

Daniel Moore

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.
 
R

R.. Kumar 1.9.1 OSX

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 ?
 
D

Daniel Moore

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.

Could you give us some hints...

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

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

2. Identifying RGB ?



--=20
-Daniel
http://rubyquiz.strd6.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top