Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0

Tuesday 5 August 2014

Experimental post_initialization hook for ruby-processing

Sketch run from jEdit, two sketchs for price of one

Previously I experimented with classic initialization hook (that avoids need to call super) here is an experimental version of ruby-processing with a post initialization hook. Seems to work!!! here are the bits that enabled it in app.rb
def initialize(options={})
  super()
  post_initialize(options)
  $app = self
  proxy_java_fields
  #############
  # omitted code
  ############
end


def post_initialize(options)
  nil
end

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2