# An PRY shell for live coding. # This flavor will either load up empty JRubyArt sketch, # or will start with your sketch. require "#{File.dirname(__FILE__)}/base.rb" Processing.load_and_run_sketch ARGV.clear # So that IRB doesn't try to load them as files. require 'pry' binding.pryYou still need to access sketch using $app, eg $app.background 0 sets background to 0 (but I expect that could be changed?). Ideally you will also install pry with rgem, and use the --gem flag to be sure that jruby can use the pry gem. Actually turn out this is still somewhat flakey, certainly on linux.
Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0
Friday, 27 December 2013
Experimenting with pry and JRubyArt
If we replace ruby-processings 'live.rb' with the following version, we can easily use pry with ruby-processing (but I am not sure what for, because I don't use pry).
Labels:
pry,
repl,
ruby-processing
Subscribe to:
Post Comments (Atom)
Followers
About Me
- monkstone
- I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2
No comments:
Post a Comment