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