SIngle stipple feature
This commit is contained in:
parent
84228c8559
commit
96b4a47397
18
stipple.sh
18
stipple.sh
|
@ -44,6 +44,7 @@ IMAGES=""
|
||||||
|
|
||||||
stipple () {
|
stipple () {
|
||||||
png="${1}"
|
png="${1}"
|
||||||
|
frame="${2}"
|
||||||
filename=`basename "${png}"`
|
filename=`basename "${png}"`
|
||||||
name=`echo "${filename}" | cut -d'.' -f1`
|
name=`echo "${filename}" | cut -d'.' -f1`
|
||||||
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
|
num=`echo "${name}" | awk -F'_' '{print $(NF)}'`
|
||||||
|
@ -84,10 +85,25 @@ stipple () {
|
||||||
fi
|
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;
|
i=0;
|
||||||
#files in dir
|
#files in dir
|
||||||
for png in "${INPUT}/"*.png ; do
|
for png in "${INPUT}/"*.png ; do
|
||||||
stipple "${png}"
|
stipple "${png}" ${i}
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue