Sha256: adbaa641ffa6bc17e2daa9d0ff5a68405bee6b44a498393fc0d69654f9cda3c2
Contents?: true
Size: 531 Bytes
Versions: 9
Compression:
Stored size: 531 Bytes
Contents
require 'rubysketch' begin window = RubySketch::Window.new {start} context = RubySketch::Processing::Context.new window (context.methods - Object.instance_methods).each do |method| define_method method do |*args, &block| context.__send__ method, *args, &block end end context.class.constants.each do |const| self.class.const_set const, context.class.const_get(const) end window.__send__ :begin_draw at_exit do window.__send__ :end_draw Reflex.start {window.show} unless $! end end
Version data entries
9 entries across 9 versions & 1 rubygems