Created
April 6, 2012 19:20
-
-
Save eidantoei/2322199 to your computer and use it in GitHub Desktop.
generate animated gif from Proce55ing saveFrame()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
// iroiro | |
} | |
void draw(){ | |
// arekore | |
saveFrame("out-####.gif"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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