Fortraneries/Fraktalism/mkjuliagif.sh

19 lines
309 B
Bash
Raw Normal View History

2022-02-12 23:27:59 +01:00
#!/bin/bash
for foo in $(seq 0 39)
do
img=$(printf "frames/%05d.pgm" $foo)
bar=$(echo "$foo / 147.0" | bc -l)
cx=$(echo "0.4 * c($foo)" | bc -l)
cy=$(echo "0.4 * s($foo*2)" | bc -l)
./julia $img $cx $cy
done
echo ; echo "Encoding, please wait..."
convert -delay 10 frames/*.pgm foo.gif