Skip to content

Instantly share code, notes, and snippets.

@blackhalt
Created October 28, 2019 15:03
Show Gist options
  • Save blackhalt/abd3a742449d7bcde67f5de4d212d592 to your computer and use it in GitHub Desktop.
Save blackhalt/abd3a742449d7bcde67f5de4d212d592 to your computer and use it in GitHub Desktop.
random_gif.sh
#!/bin/bash
convert -size 512x512 xc: +noise Random random.png
name="$(date +%s)"
for i in `seq 0 10 359`; do
j=`expr $i \* 5`
convert random.png -channel G \
-function Sinusoid 1,${i} \
-virtual-pixel tile -blur 0x40 -auto-level \
-function Sinusoid 13,${j} \
-separate +channel miff:-
done |
convert miff:- -set delay 10 -loop 0 ${name}.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment