Fortraneries/Fraktalism/tracepick.sh

37 lines
725 B
Bash
Raw Permalink Normal View History

2022-03-27 13:36:25 +11:00
#!/bin/bash
2022-03-30 17:42:39 +11:00
POVOPT=" -d +q9 +a +W1280 +H1024 -v +WT4"
2022-03-27 13:36:25 +11:00
TMPNG="/dev/shm/evolv.png"
outfile=$(printf "frames/pick3d/%05d.png" $1)
# echo $outfile
awk -f pick2pov.awk < WS/pick.dat > WS/pickover.inc
2022-03-30 17:42:39 +11:00
PASS=2222
2022-03-27 13:36:25 +11:00
povray -ipick3d.pov -K120 ${POVOPT} \
Declare=NBPASS=${PASS} \
2022-03-30 17:42:39 +11:00
-O${TMPNG} 2> WS/err-tracepick.txt
title="Clifford Pickover strange attractor"
tdate=$(date +'%F %R:%S')
# echo $tdate
coefs=$(tail -1 WS/k-pick.txt)
# echo $coefs
txt=$(printf '%s %s' "$tdate" "$coefs")
convert ${TMPNG} \
-fill Orange \
-font Courier-Bold \
-pointsize 32 \
-gravity North-West \
-annotate +30+30 "${title}" \
-pointsize 22 \
-gravity South-West \
-annotate +30+30 "${txt}" \
2022-03-27 13:36:25 +11:00
$outfile
2022-03-30 17:42:39 +11:00
sleep 2
2022-03-27 13:36:25 +11:00