FloatImg/tools/fx_demo.sh

27 lines
346 B
Bash
Raw Normal View History

2021-04-23 13:20:20 +02:00
#!/bin/bash
2022-11-01 21:18:09 +01:00
SRC="../lib/quux.fimg"
2021-04-23 13:20:20 +02:00
K="0.414"
TMP="/tmp/foo.fimg"
for fx in $(./fimgfx -l)
do
printf "========== %-12s =========\n" $fx
outfile=$(printf "/tmp/fx_%s.png" $fx)
echo $outfile
rm $TMP
./fimgfx -v -k $K $fx $SRC $TMP
if [ $? \!= 0 ] ; then
echo error $?
exit 1
fi
./fimg2png -v $TMP $outfile
echo ; sleep 1
done