# Is there shape drawing tool (like PHP) in Ruby?

**URL:** <https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716>\
**Category:** Ruby\
**Created:** [November 23, 2005, 7:28pm UTC](https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716 "2005-11-23T19:28:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricrsskim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@ricrsskim](https://www.ruby-forum.com/u/ricrsskim)\
**Post date:** [November 23, 2005, 7:28pm UTC](https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716/1 "2005-11-23T19:28:02Z")

</div>

I need to draw a simple graphs to post my biological data on web.  
And I also want to add some interactivity into the graph (using like a  
simiple  
imagemap).  
To do this, I need to know the position of squares or circles on the  
graph.  
So, instead of using statistical toolbox to draw the graph and find  
where  
square and circles are in the graph (which can be scary job), I want to  
draw  
the graph by myself and make an imagemap based on my drawing.

→ The conclusion is that I need a really simple drawing tool that  
makes it  
possible to draw lines, squares, circles, and some characters, and to  
save the  
result file in GIF format or JPG format.

Is there any simple drawing library in Ruby? (I’m thinking PHP shape  
drawing  
tools… but I don’t want to use PHP…)

* * *

Start your day with Yahoo! - Make it your home page!  
[http://www.yahoo.com/r/hs](http://www.yahoo.com/r/hs)

---

<div class="post-metadata">

**Author:** ![ricrsskim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@ricrsskim](https://www.ruby-forum.com/u/ricrsskim)\
**Post date:** [November 23, 2005, 7:52pm UTC](https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716/2 "2005-11-23T19:52:13Z")

</div>

On Thu, 24 Nov 2005, Sung Soo K. wrote:

> I need to draw a simple graphs to post my biological data on web.  
> And I also want to add some interactivity into the graph (using like a simiple  
> imagemap).  
> […]  
> Is there any simple drawing library in Ruby? (I’m thinking PHP shape drawing  
> tools… but I don’t want to use PHP…)

How is :

[http://www.pinkjuice.com/howto/rubysvg/examples.xhtml](http://www.pinkjuice.com/howto/rubysvg/examples.xhtml)

for you?

```
    Hugh

```

---

<div class="post-metadata">

**Author:** ![ricrsskim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@ricrsskim](https://www.ruby-forum.com/u/ricrsskim)\
**Post date:** [November 23, 2005, 8:20pm UTC](https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716/3 "2005-11-23T20:20:27Z")

</div>

Sung Soo K. wrote:

> → The conclusion is that I need a really simple drawing tool that makes it  
> possible to draw lines, squares, circles, and some characters, and to save the  
> result file in GIF format or JPG format.

[http://gd2.rubyforge.org/](http://gd2.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![ricrsskim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@ricrsskim](https://www.ruby-forum.com/u/ricrsskim)\
**Post date:** [November 23, 2005, 9:04pm UTC](https://www.ruby-forum.com/t/is-there-shape-drawing-tool-like-php-in-ruby/48716/4 "2005-11-23T21:04:50Z")

</div>

ming rocks.  
ming creates swf files on the fly, which can be made interactive.

I haven’t used the ruby binding, but I have used the PHP binding.  
It appears to be an abandoned project, but the ming code is still  
highly functional.

[http://madscientist.jp/~ikegami/ruby/ming/](http://madscientist.jp/~ikegami/ruby/ming/)  
[http://www16.brinkster.com/gazb/ming/index.html](http://www16.brinkster.com/gazb/ming/index.html)  
[http://ming.sourceforge.net/](http://ming.sourceforge.net/)

> **[Radar - O’Reilly](https://www.oreilly.com/radar/?page=2)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

[http://www.productbeta.com/tutorials/show.php?goomba=3&](http://www.productbeta.com/tutorials/show.php?goomba=3&)  
[http://www.thatmingthing.com/ming\_.php](http://www.thatmingthing.com/ming_.php)  
[http://namazu.org/~satoru/mingplot/](http://namazu.org/~satoru/mingplot/)  
[http://www.video-animation.com/mx2k\_01.shtml](http://www.video-animation.com/mx2k_01.shtml)
