Sha256: 23340e7b05fac2ec12a080423eeb155662c11d9fbb0504a9beb26795d36618c3
Contents?: true
Size: 663 Bytes
Versions: 13
Compression:
Stored size: 663 Bytes
Contents
#!/usr/bin/env jruby # frozen_string_literal: true 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
13 entries across 13 versions & 1 rubygems