projects
/
physik
/
posic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added time font in visualization code
[physik/posic.git]
/
visualize
diff --git
a/visualize
b/visualize
index
7dc964e
..
665cb67
100755
(executable)
--- a/
visualize
+++ b/
visualize
@@
-31,7
+31,7
@@
width="640"
height="480"
radius="0.6"
x0="-0.6"; y0="-0.6"; z0="-0.6";
height="480"
radius="0.6"
x0="-0.6"; y0="-0.6"; z0="-0.6";
-x1="
+0.6"; y1="+0.6"; z1="+
0.6";
+x1="
0.6"; y1="0.6"; z1="
0.6";
cx=""; cy=""; cz="";
lx="0"; ly="-100"; lz="100";
ortographic=""
cx=""; cy=""; cz="";
lx="0"; ly="-100"; lz="100";
ortographic=""
@@
-92,6
+92,7
@@
done
[ "$lc" = "c" ] && lc=3.566
offset=`echo 0.125 \* $lc | bc`
[ "$lc" = "c" ] && lc=3.566
offset=`echo 0.125 \* $lc | bc`
+#offset=0.0
x0=`echo $x0 \* $lc + $offset | bc`
y0=`echo $y0 \* $lc + $offset | bc`
x0=`echo $x0 \* $lc + $offset | bc`
y0=`echo $y0 \* $lc + $offset | bc`
@@
-123,6
+124,11
@@
fi
POVRAY="povray -W${width} -H${height} -d"
POVRAY="povray -W${width} -H${height} -d"
+# convert options
+
+COPTS="-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"
+COPTS="$COPTS -depth 8 -fill white -stroke blue -pointsize 24"
+
# do it ...
if [ -d $directory ]; then
# do it ...
if [ -d $directory ]; then
@@
-281,6
+287,8
@@
EOF
# mv png
$POVRAY temp.pov > /dev/null 2>&1
# mv png
$POVRAY temp.pov > /dev/null 2>&1
+ time=`echo $file | awk -F. '{ print $1 }' | awk -F_ '{ print $3 }'`
+ convert $COPTS -draw "text 5,20 't = $time fs'" temp.png temp.png
mv temp.png `echo $file | sed 's/\.xyz/\.png/'`
done
mv temp.png `echo $file | sed 's/\.xyz/\.png/'`
done