#!/bin/bash

rm img/a/*.tga

for clock in $(seq 0 1 360)
do

	outf=$(printf "img/a/%04d.tga" $clock)
	echo $clock = $outf
	povray -ianim -o${outf} -K${clock} -d -v	\
			+FT +q9 +a -w320 -h240

	# custom tTh command, sorry
	tga_cadre ${outf} sweep ${outf} 0 0 0 8

done

convert -delay 10 -loop 0 img/a/*.tga anim.gif
