Add invert option to stipple
This commit is contained in:
parent
d6a3c4ac00
commit
a08078fee0
10
stipple.sh
10
stipple.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue