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 /gen.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 'gen.sh')
-rwxr-xr-x | gen.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,13 +8,14 @@ rm -f export_flip/* | |||
8 | 8 | ||
9 | find . -type f \( -iname "*.svg" ! -iname ".*" \) -print0 | parallel -0 'x={.}; inkscape -z -e "export/${x#./}.png" "{}"' {} \; | 9 | find . -type f \( -iname "*.svg" ! -iname ".*" \) -print0 | parallel -0 'x={.}; inkscape -z -e "export/${x#./}.png" "{}"' {} \; |
10 | ./blobfoxdundundun.sh | 10 | ./blobfoxdundundun.sh |
11 | ./blobfoxhyperowo.sh | ||
11 | cp LICENSE export/ | 12 | cp LICENSE export/ |
12 | cp export/* export_flip/ | 13 | cp export/* export_flip/ |
13 | 14 | ||
14 | cd export | 15 | cd export |
15 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 | 16 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 |
16 | apngasm -o ablobfoxhyper.png blobfoxhyper1.png 2:100 blobfoxhyper2.png 2:100 blobfoxhyper3.png 2:100 | 17 | apngasm -o ablobfoxhyper.png blobfoxhyper1.png 2:100 blobfoxhyper2.png 2:100 blobfoxhyper3.png 2:100 |
17 | rm blobfoxhyper1.png blobfoxhyper2.png blobfoxhyper3.png | 18 | rm blobfoxhyper1.png blobfoxhyper2.png blobfoxhyper3.png blobfoxhyperowo.png |
18 | 19 | ||
19 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 20 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
20 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json | 21 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json |
@@ -30,7 +31,7 @@ find . -type f -iname '*.png' -exec sh -c 'x=${0#./blobfox}; mv blobfox$x revblo | |||
30 | mogrify -flop *.png | 31 | mogrify -flop *.png |
31 | apngasm -o arevblobfoxbongo.png revblobfoxbongo.png 100 revblobfoxbongostart.png 100 | 32 | apngasm -o arevblobfoxbongo.png revblobfoxbongo.png 100 revblobfoxbongostart.png 100 |
32 | apngasm -o arevblobfoxhyper.png revblobfoxhyper1.png 2:100 revblobfoxhyper2.png 2:100 revblobfoxhyper3.png 2:100 | 33 | apngasm -o arevblobfoxhyper.png revblobfoxhyper1.png 2:100 revblobfoxhyper2.png 2:100 revblobfoxhyper3.png 2:100 |
33 | rm revblobfoxhyper1.png revblobfoxhyper2.png revblobfoxhyper3.png | 34 | rm revblobfoxhyper1.png revblobfoxhyper2.png revblobfoxhyper3.png revblobfoxhyperowo.png |
34 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 35 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
35 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json | 36 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json |
36 | 37 | ||