Guest User

Untitled

a guest
Jul 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. require 'ruby-processing'
  2.  
  3. class ProcessingTest < Processing::App
  4. load_library 'carnivore'
  5.  
  6. require 'packet_listener'
  7. include Java::PacketListener
  8.  
  9. def setup
  10. @carnivore = org.rsg.carnivore.CarnivoreP5.new(self)
  11. @carnivore.setVolumeLimit(20)
  12. end
  13.  
  14. def draw
  15. end
  16.  
  17. def packetEvent(packet)
  18. p packet
  19. end
  20. end
  21.  
  22. ProcessingTest.new :title => "testing!", :width => 50, :height => 50
Add Comment
Please, Sign In to add comment