animation/registration.sh

31 lines
581 B
Bash
Raw Normal View History

#!/bin/bash
###########################
#
# Draws all svgs in a sequence. Starts with a
# fieldguide unless beginning the sequence not
# on the first frame, provided as the second argument.
#
###########################
source ./common.sh
dbSetup
for i in {0..3} ; do
echo "Drawing registration marks ${i}..."
bash position.sh set
ax guides/guide_marks.svg
2023-02-12 00:23:39 +00:00
name="${i}"
number=`mktemp`.svg
node ./numbers/ -n "${name}" -o "${number}"
ax "${number}"
rm -f "${number}"
bash position.sh reset
askContinue "Draw next registration marks?" "Drawing next field..."
done