diff --git a/ablobfoxdundundunowo1.svg b/ablobfoxdundundunowo1.svg new file mode 100644 index 0000000..1b7d76b --- /dev/null +++ b/ablobfoxdundundunowo1.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ablobfoxdundundunowo2.svg b/ablobfoxdundundunowo2.svg new file mode 100644 index 0000000..cdbfe70 --- /dev/null +++ b/ablobfoxdundundunowo2.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ablobfoxdundundunowo3.svg b/ablobfoxdundundunowo3.svg new file mode 100644 index 0000000..ac9afb9 --- /dev/null +++ b/ablobfoxdundundunowo3.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ablobfoxdundundunowo4.svg b/ablobfoxdundundunowo4.svg new file mode 100644 index 0000000..b161990 --- /dev/null +++ b/ablobfoxdundundunowo4.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blobfoxdundundun.sh b/dundundun.sh similarity index 53% rename from blobfoxdundundun.sh rename to dundundun.sh index f0c23e0..e3e93e5 100755 --- a/blobfoxdundundun.sh +++ b/dundundun.sh @@ -5,22 +5,26 @@ source ./shakeoffsets.sh declare -a shakeOffsets getShakeOffsets shakeOffsets +SOURCEBASE=$1 +SOURCESVG=`printf "%s.svg" $SOURCEBASE` +TARGETSVG=`printf "export/%s.png" $SOURCEBASE` mkdir -p export_tmp rm -f export_tmp/* -inkscape -z -e "export_tmp/1.png" "ablobfoxdundundun1.svg" -inkscape -z -e "export_tmp/2.png" "ablobfoxdundundun2.svg" -inkscape -z -e "export_tmp/3.png" "ablobfoxdundundun3.svg" -inkscape -z -e "export_tmp/4.png" "ablobfoxdundundun4.svg" +inkscape -z -e "export_tmp/1.png" `printf "%s1.png" $SOURCEBASE` +inkscape -z -e "export_tmp/2.png" `printf "%s2.png" $SOURCEBASE` +inkscape -z -e "export_tmp/3.png" `printf "%s3.png" $SOURCEBASE` +inkscape -z -e "export_tmp/4.png" `printf "%s4.png" $SOURCEBASE` counter=5 while [ $counter -le 79 ] do offset=${shakeOffsets[counter-5]} file=`printf "export_tmp/%s.png" $counter` - inkscape -z -e $file -a $offset "ablobfoxdundundun4.svg" + source=`printf "%s4.png" $SOURCEBASE` + inkscape -z -e $file -a $offset $source ((counter++)) done @@ -38,5 +42,5 @@ do ((counter++)) done -apngasm -o export/ablobfoxdundundun.png ${args[@]} +apngasm -o $TARGETSVG ${args[@]} rm -f export_tmp/* diff --git a/gen.sh b/gen.sh index 02e2f7e..88e1c2d 100755 --- a/gen.sh +++ b/gen.sh @@ -7,7 +7,8 @@ mkdir -p export_flip rm -f export_flip/* find . -type f \( -iname "*.svg" ! -iname ".*" ! -iname "a*" \) -print0 | parallel -0 'x={.}; inkscape -z -e "export/${x#./}.png" "{}"' {} \; -./blobfoxdundundun.sh +./dundundun.sh ablobfoxdundundun +./dundundun.sh ablobfoxdundundunowo ./hyperize.sh ablobfoxhyperowo ./hyperize.sh ablobfoxhypercofe ./hyperize.sh ablobfoxhyperthinking @@ -29,7 +30,7 @@ CHECKSUM=`sha256sum -z blobfox.zip | awk '{ print $1 }'` cd ../export_flip -rm blobfoxsign*.png blobfoxconfused.png blobfoxbreadsnoot*.png +rm blobfoxsign*.png blobfoxconfused.png blobfoxbreadsnoot*.png blobfoxsleep.png find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; mv $x rev$x' {} \; mogrify -flop *.png FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;`