a 2Dgraphics alike lib for ruby ?

H

honte

all in subject :( ... i've seen stuff like tioga (linux) or gnuplot, but
i'd like something like 2Dgraphics on java.. I am new to ruby, so any
suggestion welcome, thank you in advance.
 
J

Joel VanderWerf

honte said:
all in subject :( ... i've seen stuff like tioga (linux) or gnuplot, but
i'd like something like 2Dgraphics on java.. I am new to ruby, so any
suggestion welcome, thank you in advance.

There's the TkCanvas widget, which you can use through Ruby's Tk
binding. It's included in the one-click installer and other ruby
interpreter packages.
 
C

Clifford Heath

honte said:
i've seen stuff like tioga (linux) or gnuplot, but
i'd like something like 2Dgraphics on java.

RMagick gives you a drawing API into an in-memory image,
which you can save to a file in numerous formats. You can
also access the pixel array and map them to a Pixbuf to
display in a ruby-gtk application. This approach might be
more suitable than TkCanvas if your main goal is to generate
image files (rather than display images).

Clifford Heath.
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top