update pom... again

This commit is contained in:
zhao
2023-06-15 00:17:29 -04:00
parent ce7c1b3260
commit fd4a1b48e0
2 changed files with 26 additions and 10 deletions

16
misc/animate.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# simple bash script to animate the frame dump from openscad
name="anim"
# Check if an argument is provided and update the variable if so
if [ -n "$1" ]; then
name="$1"
fi
filename_without_extension="${name%.*}"
# needs tomorrow night openscad theme
convert -resize 20% -delay 6 -loop 0 -transparent "#1d1f21" -dispose previous frame000*.png "$filename_without_extension".gif
gifsicle -O3 --colors=64 --scale 0.5 -i "$filename_without_extension".gif -o "$filename_without_extension".gif