librelist archives

« back to archive

jruby 2d graphics

jruby 2d graphics

From:
Martin DeMello
Date:
2009-10-30 @ 06:56
So, what are the low level 2D libraries available on JRuby? What would
the best replacement for Cairo be, if we decided to go down that
route?

martin

Re: jruby 2d graphics

From:
MenTaLguY
Date:
2009-10-30 @ 16:50
On Fri, 2009-10-30 at 12:26 +0530, Martin DeMello wrote:
> So, what are the low level 2D libraries available on JRuby? What would
> the best replacement for Cairo be, if we decided to go down that
> route?

Probably Java2D.  A couple years ago I implemented a subset of Shoes
with JRuby as an experiment -- the main issue I hit at the time was that
Java2D's stroking rules are incompatible with Cairo's, but I've since
learned how to implement custom stroking in Java2D, so that may not be
an insurmountable obstacle.

-mental