Added recorder to be able to stream the current LED data via network. That way you can create nice looking GIF images of the effects - and even develop effects without having to look at the actual LED panel.
This commit is contained in:
20
src/tools/generate_gifs.sh
Executable file
20
src/tools/generate_gifs.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
IP="$1"
|
||||
EFFECTS=`egrep "case" ../effects.cpp | tr -s "\t" " " | cut -d" " -f 7 | sort`
|
||||
|
||||
mkdir effects
|
||||
|
||||
for effect in $EFFECTS; do
|
||||
[ "$effect" = "cycle" ] && continue
|
||||
[ "$effect" = "off" ] && continue
|
||||
[ "$effect" = "koopa" ] && continue
|
||||
[ "$effect" = "couple_rain" ] && continue
|
||||
[ "$effect" = "cake" ] && continue
|
||||
|
||||
echo " + ./recorder.rb $IP /tmp/effect.gif $effect"
|
||||
./recorder.rb $IP /tmp/effect.gif $effect
|
||||
echo
|
||||
echo " + gifsicle /tmp/effect.gif -o effects/$effect.gif"
|
||||
gifsicle /tmp/effect.gif -o effects/$effect.gif
|
||||
done
|
Reference in New Issue
Block a user