diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-09-28 18:08:18 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-09-28 18:08:18 +0200 |
commit | f4754c009d97b963b0c9dfcb55811af795bc0035 (patch) | |
tree | 1c1ed9ce197fd692118f5d19ee0cfa111fe47216 /gen.sh | |
parent | new: hyperowo, moved animation offsets into function for reusability (diff) | |
download | blobfox-emojis-f4754c009d97b963b0c9dfcb55811af795bc0035.tar.gz blobfox-emojis-f4754c009d97b963b0c9dfcb55811af795bc0035.tar.bz2 blobfox-emojis-f4754c009d97b963b0c9dfcb55811af795bc0035.zip |
new: hypercofe, generalized hyper script
Diffstat (limited to 'gen.sh')
-rwxr-xr-x | gen.sh | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -8,14 +8,16 @@ 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 | ./hyperize.sh blobfoxhyperowo |
12 | ./hyperize.sh blobfoxhypercofe | ||
12 | cp LICENSE export/ | 13 | cp LICENSE export/ |
13 | cp export/* export_flip/ | ||
14 | 14 | ||
15 | cd export | 15 | cd export |
16 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 | 16 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 |
17 | 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 |
18 | rm blobfoxhyper1.png blobfoxhyper2.png blobfoxhyper3.png blobfoxhyperowo.png | 18 | rm blobfoxhyper1.png blobfoxhyper2.png blobfoxhyper3.png blobfoxhyperowo.png blobfoxhypercofe.png |
19 | cp ./blobfox* ../export_flip/ | ||
20 | |||
19 | 21 | ||
20 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 22 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
21 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json | 23 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json |
@@ -27,11 +29,8 @@ CHECKSUM=`sha256sum -z blobfox.zip | awk '{ print $1 }'` | |||
27 | cd ../export_flip | 29 | cd ../export_flip |
28 | 30 | ||
29 | rm blobfoxsign*.png blobfoxconfused.png blobfoxbreadsnoot*.png | 31 | rm blobfoxsign*.png blobfoxconfused.png blobfoxbreadsnoot*.png |
30 | find . -type f -iname '*.png' -exec sh -c 'x=${0#./blobfox}; mv blobfox$x revblobfox$x' {} \; | 32 | find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; mv $x rev$x' {} \; |
31 | mogrify -flop *.png | 33 | mogrify -flop *.png |
32 | apngasm -o arevblobfoxbongo.png revblobfoxbongo.png 100 revblobfoxbongostart.png 100 | ||
33 | apngasm -o arevblobfoxhyper.png revblobfoxhyper1.png 2:100 revblobfoxhyper2.png 2:100 revblobfoxhyper3.png 2:100 | ||
34 | rm revblobfoxhyper1.png revblobfoxhyper2.png revblobfoxhyper3.png revblobfoxhyperowo.png | ||
35 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 34 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
36 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json | 35 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json |
37 | 36 | ||