Skip to content

Instantly share code, notes, and snippets.

@eidantoei
Created April 6, 2012 19:20
Show Gist options
  • Save eidantoei/2322199 to your computer and use it in GitHub Desktop.
Save eidantoei/2322199 to your computer and use it in GitHub Desktop.
generate animated gif from Proce55ing saveFrame()
void setup(){
// iroiro
}
void draw(){
// arekore
saveFrame("out-####.gif");
}
convert -dispose background -loop 0 $(i=1;md5 *.gif|awk '{print $4}'|uniq -c|awk '{print $1}'|sed -e '$d'|while read N;do I=$(printf "%04d" $i);echo -n "-delay $((3*$N)) out-$I.gif ";i=$((i+N));done) out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment