Created
January 5, 2016 22:04
-
-
Save MintPaw/d859e02bf6b00fdec229 to your computer and use it in GitHub Desktop.
Create temporary animation frames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$1" = "--help" ] || [ "$1" = "" ]; then | |
echo "createAnim <animName> <numberOfFrames> <dims> <bgColour>" | |
echo "Example: createAnim walking 3 200x200 white" | |
echo "Use NONE as animName for no text" | |
exit | |
fi | |
for a in `seq $2` | |
do | |
label=$1_$a | |
if [ "$1" = "NONE" ]; then | |
label=" " | |
fi | |
convert -background $4 -font DejaVu-Sans -size $3 -gravity center \ | |
label:"$label" "$1_$a.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment