Compare commits
No commits in common. "a08078fee0764d16846f81c6ff5f69022cc76625" and "4a0f65876b281ac9d9d9f190004b612bf7fa6c4a" have entirely different histories.
a08078fee0
...
4a0f65876b
5
draw.sh
5
draw.sh
|
@ -1,9 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "${1}" == "" ]]; then
|
#field guide
|
||||||
echo "Please provide a directory as the first argument"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${2}" == "" ]; then
|
if [ "${2}" == "" ]; then
|
||||||
name=`basename "${1}"`
|
name=`basename "${1}"`
|
||||||
|
|
11
image_seq.sh
11
image_seq.sh
|
@ -1,24 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MULTIPLE=2
|
|
||||||
RATE=`echo "scale=0;24/${MULTIPLE}" | bc`
|
|
||||||
|
|
||||||
INPUT="${1}"
|
INPUT="${1}"
|
||||||
OUTPUT="${2}"
|
OUTPUT="${2}"
|
||||||
INVERT="${3}"
|
|
||||||
|
|
||||||
WIDTH=323
|
WIDTH=323
|
||||||
HEIGHT=242
|
HEIGHT=242
|
||||||
|
|
||||||
if [[ "${INVERT}" != "" ]]; then
|
|
||||||
INVERT="-vf negate"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${OUTPUT}"
|
mkdir -p "${OUTPUT}"
|
||||||
|
|
||||||
ffmpeg -re -i "${INPUT}" \
|
ffmpeg -re -i "${INPUT}" \
|
||||||
-f image2 \
|
-f image2 \
|
||||||
-r ${RATE} \
|
-r 12 \
|
||||||
"${INVERT}" \
|
|
||||||
-vf crop=in_h/3*4:in_h,scale=$WIDTH:$HEIGHT,setsar=1:1 \
|
-vf crop=in_h/3*4:in_h,scale=$WIDTH:$HEIGHT,setsar=1:1 \
|
||||||
"${OUTPUT}/image_%06d.png"
|
"${OUTPUT}/image_%06d.png"
|
10
stipple.sh
10
stipple.sh
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
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
|
||||||
|
@ -49,8 +42,7 @@ 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