Create a gist now

Instantly share code, notes, and snippets.

# color crashing effect
require 'aviglitch'
a = ARGV.shift
deltas = []
a.frames.each_with_index do |f, i|
deltas.push(i) if f.is_deltaframe?
q = a.frames[0, 5] # keep first frames.
100.times do
x = a.frames[deltas[rand(deltas.size)], 1]
q.concat(x * rand(50))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment