Commit Description:
Fix issue with simulation....
Commit Description:
Fix issue with simulation. Previously, if there was more than one tick being advanced at once, it would overshoot how many ticks it covered. So if it was covering 5 ticks and each tick happens every 100 units, rather than recording that it had simulated through t= 500, it would increase the cumulative time for each tick, recording that it had simulated through t=2500. Add error message, too.
File last commit:
Show/Diff file:
Action:
scripts/crop.sh
20 lines | 445 B | application/x-sh | BashLexer
#!/bin/sh
#C/O facedetect documentation (with some help from shellcheck)
IMAGES="isometric-park-fna/Content/images/"
mkdir "$IMAGES/crops"
for file in $IMAGES/*.jpg; do
name=$(basename "$file")
i=0
facedetect "$file" | while read -r x y w h; do
x=$(( x - w))
y=$(( y - h))
w=$(( w * 3))
h=$(( w * 4 / 3 ))
convert "$file" -crop "${w}x${h}+${x}+${y}" "$IMAGES/crops/${name%.*}_${i}.${name##*.}"
i=$((i + 1))
done
done