Fortraneries/Fraktalism/mkjuliagif.sh

19 lines
309 B
Bash
Executable File

#!/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