X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=visualize;h=665cb67a3a925cbbd76b21d536ec722da6a08613;hb=302ab3d5071520fcfd17be54c13dc44bb1f39ab7;hp=f5584df62367dfb68efc29a7c4d83ae40af16759;hpb=36923a44342c3b07e84baec93a30b22c792f74fc;p=physik%2Fposic.git diff --git a/visualize b/visualize index f5584df..665cb67 100755 --- 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