2022-02-13 09:27:59 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-02-15 23:32:07 +11:00
|
|
|
#
|
|
|
|
# build the prog
|
|
|
|
#
|
|
|
|
|
2023-01-02 00:28:52 +11:00
|
|
|
make mkjulia
|
2022-02-15 23:32:07 +11:00
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
echo
|
|
|
|
echo "Make error " $?
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
cxa=" -1.5 "
|
|
|
|
cya=" -1.0 "
|
|
|
|
cxb=" 1.1 "
|
|
|
|
cyb=" 2.1 "
|
|
|
|
nbi=" 180 "
|
|
|
|
|
2022-02-15 23:32:07 +11:00
|
|
|
#
|
|
|
|
# run the prog
|
|
|
|
#
|
2023-01-03 11:22:40 +11:00
|
|
|
workdir="frames/julia/"
|
2024-02-11 07:55:04 +11:00
|
|
|
for foo in $( seq 0 $(( nbi - 1)) )
|
2022-02-13 09:27:59 +11:00
|
|
|
do
|
2023-01-03 11:22:40 +11:00
|
|
|
img=$(printf "%s/%05d.pnm" $workdir $foo)
|
2022-02-13 09:27:59 +11:00
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
Ka=$( echo "$foo / $nbi" | bc -l)
|
|
|
|
Kb=$( echo "1.0 - $Ka" | bc -l)
|
|
|
|
# echo $Ka $Kb
|
|
|
|
cx=$(echo "($cxa*$Ka) + ($cxb*$Kb)" | bc -l)
|
|
|
|
cy=$(echo "$cya*$Ka + $cyb*$Kb" | bc -l)
|
2022-02-13 09:27:59 +11:00
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
printf "%5d %4.6f %4.6f %4.6f %4.6f\n" \
|
|
|
|
$foo $Ka $Kb $cx $cy
|
|
|
|
./mkjulia $img $cx $cy
|
2023-05-07 19:35:48 +11:00
|
|
|
|
2022-02-13 09:27:59 +11:00
|
|
|
done
|
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
mogrify \
|
|
|
|
-gravity South-East \
|
|
|
|
-font Courier-Bold \
|
|
|
|
-pointsize 12 \
|
|
|
|
-fill Black \
|
|
|
|
-annotate +10+4 "Konrad+tTh 2024" \
|
|
|
|
"${workdir}/*.pnm"
|
2023-01-03 11:22:40 +11:00
|
|
|
|
2022-02-13 09:27:59 +11:00
|
|
|
echo ; echo "Encoding, please wait..."
|
|
|
|
|
2023-01-03 11:22:40 +11:00
|
|
|
convert -delay 10 $workdir/*.pnm color-julia.gif
|
2022-02-13 09:27:59 +11:00
|
|
|
|