require 'ruby-processing'
class Tux < Processing::App
def setup
size 200, 200
end
def draw
end
end
As you will see I have created an essentially blank sketch. When run live in a console you get an accompanying irb session to interact with your sketch. You can send messages to the running applet $app, as shown in picture below (NB: just click on the image to see if you can't read the text, otherwise you might need glasses, if you can identify the background image on my desktop you probably have extra-ordinary powers, clue he is an Assyrian god):

and magically the red rectangle is drawn, what fun (I cheated slightly on this image as I saved it directly from the irb environment using the following input:
$app.save_frame("tux.png") note the ruby like syntax, uses underscore rather than camel case.
