Sha256: 0ad317c22c2b30fb975b81dcde006f349fd04d6703a75cbe08ca231a21a49f5e
Contents?: true
Size: 634 Bytes
Versions: 21
Compression:
Stored size: 634 Bytes
Contents
#!/usr/bin/env jruby require 'picrate' class CustomProxySketch < Processing::App # A simple demonstration of vanilla processing 'reflection' methods using # picrate :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
21 entries across 21 versions & 1 rubygems