Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Forked from patriciogonzalezvivo/toGif.sh
Created July 14, 2020 02:25
Show Gist options
  • Save spac3unit/4cd728a340a7aec9dec93033977761d2 to your computer and use it in GitHub Desktop.
Save spac3unit/4cd728a340a7aec9dec93033977761d2 to your computer and use it in GitHub Desktop.
Frag Shader to gif
#!/bin/bash
SHADER=$1
SEC=$1
COUNTER=0
for i in `seq -w 0.01 .031 $SEC`; do
echo $i
`glslViewer $SHADER -s $i -o frame-$COUNTER.png`
let COUNTER=COUNTER+1
done
convert -delay 3.5 -loop 1 frame-*.png animated.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment