Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'ruby-processing'
- class ProcessingTest < Processing::App
- load_library 'carnivore'
- require 'packet_listener'
- include Java::PacketListener
- def setup
- @carnivore = org.rsg.carnivore.CarnivoreP5.new(self)
- @carnivore.setVolumeLimit(20)
- end
- def draw
- end
- def packetEvent(packet)
- p packet
- end
- end
- ProcessingTest.new :title => "testing!", :width => 50, :height => 50
Add Comment
Please, Sign In to add comment