Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Ruby Shoes Roundup: Ruby-Processing with JRuby, The Shoebox, GitHub

Ruby Shoes Roundup: Ruby-Processing with JRuby, The Shoebox, GitHub


The Shoebox is a repository for Shoes applications, Why The Lucky Stiff's tiny toolkit for creating graphical applications. You can find an introductory article about the Ruby GUI toolkit Shoes here on InfoQ. Also, the book "Nobody knows Shoes" is now available for free.

Applications can be added to the Shoebox via its web interface, which also supports multiple versions, so modifying and republishing an application is made as simple as possible. Until recently, the Shoebox contained only Shoes applications, but now it has also become the home of Ruby-Processing, a JRuby wrapper for the Processing environment:

Processing is an open source programming language and environment for people who want to program images, animation, and interactions.

Ruby-Processing attempts to make Processing more Shoes-like, replacing Processing's Java syntax with Ruby. Let's take a look at an example: the following code suffices for a minimal application that displays a sphere that follows the cursor when it moves over the screen:

require 'ruby-processing'

class FollowCursor < Processing::App
 def setup
 # 4 lines of setup code omitted for brevity

 def draw
 background 1
 translate( mouse_x, mouse_y )
 sphere 20
end => 200, :height => 200, :title => "Follow The Cursor!")

Some more extensive examples can be found in the Ruby-Processing download and of course on the Shoebox. The Shoes repository is now also hosted on GitHub.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.