Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2012 23:54
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arirusso/2221607 to your computer and use it in GitHub Desktop.
ruby-processing: video processing example
#!/usr/bin/env ruby
# this is a test of ruby-processing ( with the video library
# use "rp5 unpack library" at a command line to install the video library, among others
# tested with Ruby 1.9.2
# video file:
class VideoTest < Processing::App
load_library :video
include_package ""
def setup
size(640, 480, P2D)
@movie =, "data/")
def draw
tint(* { rand(256) })
image(@movie, 0,0)
def movie_event(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment