Compare commits

..

2 Commits

Author SHA1 Message Date
Matt McWilliams 5dc7eefe43 Add a script for simulating the math 2021-11-30 10:20:28 -05:00
Matt McWilliams 96b4a47397 SIngle stipple feature 2021-11-30 10:20:06 -05:00
2 changed files with 23 additions and 1 deletions

6
simulation.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
for (( frame=0; frame<=166; frame++ ))
do
echo "frame: ${frame}"
done

View File

@ -44,6 +44,7 @@ IMAGES=""
stipple () {
png="${1}"
frame="${2}"
filename=`basename "${png}"`
name=`echo "${filename}" | cut -d'.' -f1`
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
@ -84,10 +85,25 @@ stipple () {
fi
}
if [[ "${SINGLE}" != "" ]]; then
i=0;
echo "Rendering a single frame, #${SINGLE}"
#files in dir
for png in "${INPUT}/"*.png ; do
if [[ ${i} -eq ${SINGLE} ]]; then
stipple "${png}" ${i}
break
fi
i=$((i+1))
done
exit
fi
i=0;
#files in dir
for png in "${INPUT}/"*.png ; do
stipple "${png}"
stipple "${png}" ${i}
i=$((i+1))
done