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:
class FollowCursor < Processing::App
# 4 lines of setup code omitted for brevity
translate( mouse_x, mouse_y )
FollowCursor.new(:width => 200, :height => 200, :title => "Follow The Cursor!")
Bhoomi Mehta Nov 27, 2015
Srini Penchikala Nov 26, 2015