From 96b4a47397fd2023994f60f1a346a582eedf9873 Mon Sep 17 00:00:00 2001 From: mmattmcw Date: Tue, 30 Nov 2021 10:20:06 -0500 Subject: [PATCH] SIngle stipple feature --- stipple.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/stipple.sh b/stipple.sh index 9f4952e..a95a0c0 100644 --- a/stipple.sh +++ b/stipple.sh @@ -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