dither4/video/video.sh

16 lines
274 B
Bash
Raw Normal View History

2023-03-24 10:08:40 +00:00
set -e
for frame in frames/colamath-[0-9][0-9][0-9][0-9].png
do
n="${frame#frames/colamath-}"
n="${n%.png}"
out="frames/dither-${n}"
last="${n:0-1}"
node ../dither-image.js "$frame" "$out" &
if (( last == 9 ))
then
wait
fi
done
wait