Created
March 10, 2016 16:16
-
-
Save jspc/57bf9759973c02d3e864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Invoke as 'glitter.sh "glittery text" | |
BUILD_DIR=$(mktemp -d) | |
pushd $BUILD_DIR | |
convert -size 1024x100 xc: +noise Random -separate \ | |
null: \( xc: +noise Random -separate -threshold 30% -negate \) \ | |
-compose CopyOpacity -layers composite \ | |
-set dispose background -set delay 20 -loop 0 glitter_overlay.gif | |
convert glitter_overlay.gif null: -size 1024x100 \ | |
plasma:red-firebrick plasma:red-firebrick plasma:red-firebrick \ | |
-compose Screen -layers composite glitter_plasma.gif | |
convert -fill white -background none -font Candice \ | |
-gravity center -pointsize 90 label:"$@" glitter_mask_trans.gif | |
convert glitter_plasma.gif null: glitter_mask_trans.gif -matte \ | |
-compose DstIn -layers composite glitter_masked_trans.gif | |
cp -v glitter_masked_trans.gif ~/images/glitter.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment