diff options
Diffstat (limited to 'cholerab/bling/cancer_3d/run.sh')
-rw-r--r-- | cholerab/bling/cancer_3d/run.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cholerab/bling/cancer_3d/run.sh b/cholerab/bling/cancer_3d/run.sh new file mode 100644 index 00000000..2595a235 --- /dev/null +++ b/cholerab/bling/cancer_3d/run.sh @@ -0,0 +1,18 @@ +#!/bin/sh +if [ -f animation.lcd ] ;then + rm animation.lcd +fi + +echo -n "Frames to convert: " +ls *.png |wc -l + +for filename in *.png +do + echo -n "create mono gif $filename.gif from $filename:" + convert -monochrome $filename $filename.gif && echo "ok" + echo -n "converting to lcd file... " + ../../../r0ket/tools/image/img2lcd.pl $filename.gif && echo "ok" + echo -n "adding ${filename%\.*}.lcd to animation " + cat ${filename%\.*}.lcd >> animation.lcd && echo "ok" +done +echo "done" |