Drawing in ruby (antigrain bindings)

Hi! I'm needing a good drawing solution for ruby. All the present
options are ugly IMHO, because require a very big framework to work
(cairo needs GTK bindings for ruby for working out of the box in
windows, don't know how it is on linux). ImageMagick seems to be hated
by rubyists everywhere, due to some memory leaks or something....

I found a very criptic reference to a ruby bindings for antigrain in
this 2005 "nostalgia" post :slight_smile: :

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/35c2f61d29e94550/28b32a50948920ba

Does anybody know if there any news about antigrain bindings for ruby?

Thanks!陋

路路路

--
Posted via http://www.ruby-forum.com/.

Well, I don't think the Ruby/AGG and Ruby/View stuff ever came to
fruition. Yes, I know, I feel the same way.

Since it sounds like you're on Windows, I don't know, you might like
to try Shoes, which is a Cairo/Pango/Ruby kit that is kind of like a
very barebones Flash/HTML hybrid. You can draw primitive shapes and
paths, borrowing its drawing API from NodeBox and Processing.

The wiki is http://code.whytheluckystiff.net/shoes/
For now, the reference is http://code.whytheluckystiff.net/entirety/

There's also a wonderful thing called Scribble (by Nathan Weizenbaum,)
but I'm not sure how to get it going on Windows. I'll bet somebody
on this list has done it before, though.

_why

路路路

On Mon, Nov 05, 2007 at 08:48:48AM +0900, Emmanuel Oga wrote:

I found a very criptic reference to a ruby bindings for antigrain in
this 2005 "nostalgia" post :slight_smile: :

oga_emmanuel_oga@yahoo.com.ar wrote:

Hi! I'm needing a good drawing solution for ruby. All the present
options are ugly IMHO, because require a very big framework to work
(cairo needs GTK bindings for ruby for working out of the box in
windows, don't know how it is on linux). ImageMagick seems to be hated
by rubyists everywhere, due to some memory leaks or something....

I found a very criptic reference to a ruby bindings for antigrain in
this 2005 "nostalgia" post :slight_smile: :

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/35c2f61d29e94550/28b32a50948920ba

Does anybody know if there any news about antigrain bindings for ruby?

Thanks!陋

This might sound as crazy suggestion, but you might as well generate SVG from Ruby quite easily. Depending on what you are planning to do, this
approach might or might not have some interesting benefits - like the option of having some interactivity in a web browser. I'm not sure if there are "off-the-shelf" libraries to do this right now, but SVG should
not be that difficult. You can easily convert SVG to anything else later.

HTH,

Jakub

-------- Original-Nachricht --------

Datum: Mon, 5 Nov 2007 08:48:48 +0900
Von: Emmanuel Oga <oga_emmanuel_oga@yahoo.com.ar>
An: ruby-talk@ruby-lang.org
Betreff: Drawing in ruby (antigrain bindings)

Hi! I'm needing a good drawing solution for ruby. All the present
options are ugly IMHO, because require a very big framework to work
(cairo needs GTK bindings for ruby for working out of the box in
windows, don't know how it is on linux). ImageMagick seems to be hated
by rubyists everywhere, due to some memory leaks or something....

I found a very criptic reference to a ruby bindings for antigrain in
this 2005 "nostalgia" post :slight_smile: :

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/35c2f61d29e94550/28b32a50948920ba

Does anybody know if there any news about antigrain bindings for ruby?

Thanks!陋
--
Posted via http://www.ruby-forum.com/\.

Dear Emanuel,

as antigrain seems to be written in C++, you may be able to use it
in conjunction with Ruby via SWIG:

http://www.swig.org/

There are some examples on how to do that here:
http://www.goto.info.waseda.ac.jp/~fukusima/ruby/swig-examples/

Best regards,

Axel

路路路

--
Psssst! Schon vom neuen GMX MultiMessenger geh枚rt?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

Give RMagick a try, it's not so leaky as you've heard.
It can do vector and raster art. Quite good stuff!
Tim Hunter maintains it well.

路路路

On Nov 5, 2007, at 4:46 AM, Axel Etzold wrote:

-------- Original-Nachricht --------

Datum: Mon, 5 Nov 2007 08:48:48 +0900
Von: Emmanuel Oga <oga_emmanuel_oga@yahoo.com.ar>
An: ruby-talk@ruby-lang.org
Betreff: Drawing in ruby (antigrain bindings)

Hi! I'm needing a good drawing solution for ruby. All the present
options are ugly IMHO, because require a very big framework to work
(cairo needs GTK bindings for ruby for working out of the box in
windows, don't know how it is on linux). ImageMagick seems to be hated
by rubyists everywhere, due to some memory leaks or something....

I found a very criptic reference to a ruby bindings for antigrain in
this 2005 "nostalgia" post :slight_smile: :

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/35c2f61d29e94550/28b32a50948920ba

Does anybody know if there any news about antigrain bindings for ruby?

Thanks!陋
--
Posted via http://www.ruby-forum.com/\.

Dear Emanuel,

as antigrain seems to be written in C++, you may be able to use it
in conjunction with Ruby via SWIG:

http://www.swig.org/

There are some examples on how to do that here:
http://www.goto.info.waseda.ac.jp/~fukusima/ruby/swig-examples/

Best regards,

Axel
--
Psssst! Schon vom neuen GMX MultiMessenger geh枚rt?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger