Sha256: 6d2394eab97f8ed282d25c0748dde5fe0640dd5707ac47d99a619e4273adac92
Contents?: true
Size: 631 Bytes
Versions: 27
Compression:
Stored size: 631 Bytes
Contents
#!/usr/bin/env jruby require 'propane' class CustomProxySketch < Propane::App # A simple demonstration of vanilla processing 'reflection' methods using # propane :library_proxy. See my_library.rb code for the guts. load_libraries :library_proxy, :my_library attr_reader :visible def settings size 300, 200 @visible = false end def setup sketch_title 'Reflection Voodoo Proxy' MyLibrary.new self end def hide(val) @visible = !val end def draw if visible fill(0, 0, 200) ellipse(170, 115, 70, 100) else background 0 end end end CustomProxySketch.new
Version data entries
27 entries across 27 versions & 2 rubygems