# Console-based Pixel Editor (#231)

**URL:** <https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089>\
**Category:** Ruby\
**Created:** [April 16, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089 "2010-04-16T18:58:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [April 16, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089/1 "2010-04-16T18:58:50Z")

</div>

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

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](http://rubyquiz.strd6.com/quizzes.rss)

Suggestions?: [http://rubyquiz.strd6.com/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](http://github.com/elliottcable/ncurses)  
HighLine: [http://highline.rubyforge.org/doc/](http://highline.rubyforge.org/doc/)

Have fun!

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [July 14, 2010, 7:58pm UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089/2 "2010-07-14T19:58:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [July 15, 2010, 6:18am UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089/3 "2010-07-15T06:18:57Z")

</div>

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.

2. Identifying RGB ?

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [July 15, 2010, 7:17am UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089/4 "2010-07-15T07:17:11Z")

</div>

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
