Skip to content

Instantly share code, notes, and snippets.

@kissge
Last active August 29, 2024 07:31
Show Gist options
  • Save kissge/14e9a1e41a628195860deb43cba1f015 to your computer and use it in GitHub Desktop.
Save kissge/14e9a1e41a628195860deb43cba1f015 to your computer and use it in GitHub Desktop.
:warn: の作り方

warning.png:

warning


warning-roll.gif:

warning-roll

zmodload zsh/mathfunc
for n in $(seq -w 0 2 249); do
magick warning.png \
-fill white \
-colorize "$(( 35. * ( 1 + sin(2 * 3.141592653 * n / 25.) ) ))%" \
-roll "+${n}+0" \
warning_roll_"${n}".png
done
gifski -o warning-roll.gif -r 50 warning_roll_???.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment