summaryrefslogtreecommitdiffstats
path: root/cholerab/bling/cancer_3d/run.sh
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-08-12 18:49:49 +0200
committerLassulus <Lassulus@googlemail.com>2011-08-12 18:49:49 +0200
commitdb66373e6bb5fae804031e11b5cbdfc5e6d206bc (patch)
treee888384d6a450ab82d31fa552713734bebb7446c /cholerab/bling/cancer_3d/run.sh
parente28f38e69569f5a69c72346e4e9c00024a7a82ab (diff)
added 3d krebs
Diffstat (limited to 'cholerab/bling/cancer_3d/run.sh')
-rw-r--r--cholerab/bling/cancer_3d/run.sh18
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"