projects
/
physik
/
posic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36923a4
)
added time font in visualization code
author
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Tue, 28 Oct 2008 14:29:38 +0000
(15:29 +0100)
committer
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Tue, 28 Oct 2008 14:29:38 +0000
(15:29 +0100)
visualize
patch
|
blob
|
history
diff --git
a/visualize
b/visualize
index
f5584df
..
665cb67
100755
(executable)
--- a/
visualize
+++ b/
visualize
@@
-124,6
+124,11
@@
fi
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
@@
-282,6
+287,8
@@
EOF
# 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