PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Drawing in ruby (antigrain bindings)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Drawing in ruby (antigrain bindings)

Réponse
 
LinkBack Outils de la discussion
Vieux 04/11/2007, 23h48   #1
oga_emmanuel_oga@yahoo.com.ar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 :

http://groups.google.com/group/comp....b32a50948920ba

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

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

  Réponse avec citation
Vieux 05/11/2007, 04h38   #2
why@ruby-lang.org
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drawing in ruby (antigrain bindings)

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 :


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

  Réponse avec citation
Vieux 05/11/2007, 09h25   #3
Jakub Hegenbart
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drawing in ruby (antigrain bindings)

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 :
>
> http://groups.google.com/group/comp....b32a50948920ba
>
> 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
  Réponse avec citation
Vieux 05/11/2007, 10h46   #4
AEtzold@gmx.de
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drawing in ruby (antigrain bindings)


-------- 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 :
>
> http://groups.google.com/group/comp....b32a50948920ba
>
> 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/~f...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

  Réponse avec citation
Vieux 05/11/2007, 11h41   #5
dangerwillrobinsondanger@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drawing in ruby (antigrain bindings)

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 :
>>
>> http://groups.google.com/group/comp....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/~f...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
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h38.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14823 seconds with 13 queries