From: Bob Gustafson Date: 2001-10-02T09:44:20+09:00 Subject: [ruby-talk:21907] Re: Ruby SVG Henning von Rosen wrote on Tue, 2 Oct: >What is the best way to integrate Ruby with SVG? > >SVG has all the vectorgrphics that I need... but how integrate? > >I would like to communicate between the ruby program and the SVG document, >updating it in response to user actions and so on... a higly advanced >'canvas', with embeddable xhtml, animation and so on. > >anyone into SVG? > >BTW: would it be difficult to make the SVG scriptable in something else than >JavaScript? > >/He I have used a ruby program to create SVG graphics, but not interactive graphics (other than what you get for free - zoom, scroll). Perhaps a way to creep up on it (and get a handle on the specification of what you want to do) would be to write out javascript with the graphics, and then have the javascript call (another) ruby program to handle the interaction. This is complex, but doable - probably would not scale too much above a 'hello world', but you might learn enough to figure out a better way. BobG