Add invert option to stipple

This commit is contained in:
Matt McWilliams 2021-09-08 20:53:52 -04:00
parent d6a3c4ac00
commit a08078fee0
1 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,13 @@
INPUT=`realpath "${1}"` INPUT=`realpath "${1}"`
OUTPUT=`realpath "${2}"` OUTPUT=`realpath "${2}"`
INVERT="${3}"
if [[ "${INVERT}" == "" ]]; then
INVERT="false"
else
INVERT="true"
fi
WIDTH=404 WIDTH=404
HEIGHT=374 HEIGHT=374
@ -42,7 +49,8 @@ for png in "${INPUT}/"*.png ; do
--line $LINE \ --line $LINE \
--fill $FILL \ --fill $FILL \
--maxParticles $MAXPARTICLES \ --maxParticles $MAXPARTICLES \
--mode $MODE --mode $MODE \
--invert $INVERT
rm "${tmp}" rm "${tmp}"
cd ~/src/animation/ cd ~/src/animation/
if [ "${MODE}" != "tsp" ]; then if [ "${MODE}" != "tsp" ]; then