diff options
| author | Feuerfuchs <git@feuerfuchs.dev> | 2019-09-28 17:38:09 +0200 |
|---|---|---|
| committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-09-28 17:38:09 +0200 |
| commit | 821ddad7c800f18f6ec962a18a88ff0bf58825aa (patch) | |
| tree | 97f217f2e579bf0cddfd3d12d44afe8d14697a4b /blobfoxhyperowo.sh | |
| parent | new: boopterrified, cactus, cofemlem, dealwititfingerguns, dundundun* heartcu... (diff) | |
| download | blobfox-emojis-821ddad7c800f18f6ec962a18a88ff0bf58825aa.tar.gz blobfox-emojis-821ddad7c800f18f6ec962a18a88ff0bf58825aa.tar.bz2 blobfox-emojis-821ddad7c800f18f6ec962a18a88ff0bf58825aa.zip | |
new: hyperowo, moved animation offsets into function for reusability
Diffstat (limited to 'blobfoxhyperowo.sh')
| -rwxr-xr-x | blobfoxhyperowo.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/blobfoxhyperowo.sh b/blobfoxhyperowo.sh new file mode 100755 index 0000000..d53b829 --- /dev/null +++ b/blobfoxhyperowo.sh | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | source ./shakeoffsets.sh | ||
| 4 | |||
| 5 | declare -a shakeOffsets | ||
| 6 | getShakeOffsets shakeOffsets | ||
| 7 | |||
| 8 | |||
| 9 | mkdir -p export_tmp | ||
| 10 | rm -f export_tmp/* | ||
| 11 | |||
| 12 | |||
| 13 | counter=1 | ||
| 14 | while [ $counter -le 75 ] | ||
| 15 | do | ||
| 16 | offset=${shakeOffsets[counter-1]} | ||
| 17 | file=`printf "export_tmp/%s.png" $counter` | ||
| 18 | inkscape -z -e $file -a $offset "blobfoxhyperowo.svg" | ||
| 19 | ((counter++)) | ||
| 20 | done | ||
| 21 | |||
| 22 | |||
| 23 | declare -a args | ||
| 24 | |||
| 25 | counter=1 | ||
| 26 | while [ $counter -le 75 ] | ||
| 27 | do | ||
| 28 | file=`printf "export_tmp/%s.png" $counter` | ||
| 29 | args+=($file 1:50) | ||
| 30 | ((counter++)) | ||
| 31 | done | ||
| 32 | |||
| 33 | apngasm -o export/ablobfoxhyperowo.png ${args[@]} | ||
| 34 | rm -f export_tmp/* | ||
