def size(*args)
      width, height, mode = *args
      @width ||= width
      @height ||= height
      @render_mode ||= mode
      import_opengl if /opengl/ =~ mode
      super(*args)
    end
def size(*args)
      width, height, mode = *args
      @width ||= width
      @height ||= height
      @render_mode ||= mode
      import_opengl if /opengl/ =~ mode
      super(*args)
    end
Since processing-3.0 you should prefer setting the sketch width and
 height and renderer using the size method in the settings loop of the
 sketch (as with vanilla processing) but is hidden see created java.
 Options are no longer relevant, define post_initialize method to use
 custom options (see Sandi Metz POODR)