wip cats
This commit is contained in:
parent
7b194147ef
commit
e5adb72851
3 changed files with 42 additions and 0 deletions
15
video-cat/video.sh
Normal file
15
video-cat/video.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
set -e
|
||||
|
||||
for frame in frames/cats-[0-9][0-9][0-9][0-9].png
|
||||
do
|
||||
n="${frame#frames/cats-}"
|
||||
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
|
||||
Loading…
Reference in a new issue