Module: Processing::Proxy

Includes:
Java::ProcessingCore::PConstants, Math, HelperMethods
Defined in:
lib/picrate/app.rb

Overview

Importing PConstants here to access the processing constants

Instance Method Summary collapse

Methods included from HelperMethods

#blend_color, #buffer, #color, #dist, #find_method, #frame_rate, #hsb_color, #int_to_ruby_colors, #java_self, #kamera, #key, #key_pressed?, #lerp_color, #load_strings, #max, #min, #mouse_pressed?, #perspektiv, #proxy_java_fields, #save_strings, #thread, #web_to_color_array

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



182
183
184
185
186
# File 'lib/picrate/app.rb', line 182

def method_missing(name, *args, &block)
  return Processing.app.send(name, *args) if Processing.app.respond_to? name

  super
end

Instance Method Details

#respond_to_missing?(symbol, include_priv = false) ⇒ Boolean

Returns:

  • (Boolean)


178
179
180
# File 'lib/picrate/app.rb', line 178

def respond_to_missing?(symbol, include_priv = false)
  Processing.app.respond_to?(symbol, include_priv) || super
end