thebookofshaders/11/tmp/makegif.sh
Patricio Gonzalez Vivo b1500890cb sgrid
2015-12-22 17:19:21 -05:00

14 lines
221 B
Bash
Executable File

#!/bin/bash
FILE=$1
SEC=$2
COUNTER=0
for i in `seq -w 0.01 .031 $SEC`; do
echo $i
`glslViewer $FILE -s $i -o frame-$COUNTER.png`
let COUNTER=COUNTER+1
done
convert -delay 3.5 -loop 1 frame-*.png animated.gif