2

I'm wondering if it's possible to view and then hopefully animate SVG diagrams in pure Ruby GTK.

I'd prefer to use only the Gtk API. SVG is necessary. Thus I exclude a dedicated games library like Ruby2D or Gosu.

I also found the excellent Oekaki gem, but SVG is no handled either.

Ruby GTK3 seems to provide a Rsvg gem, but the documentation is sparse concerning its actual use.

JCLL
  • 5,379
  • 5
  • 44
  • 64
  • This example show how to view SVG with Ruby/Gtk3. https://github.com/ruby-gnome/ruby-gnome/blob/master/rsvg2/sample/svg-viewer.rb – kojix2 Feb 23 '20 at 05:14
  • 1
    Thx. I know this example. However, it is very far from animation, I think. It seems that only Javascript allows for such SVG animation :-( – JCLL Feb 23 '20 at 20:20

0 Answers0