mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Added convert util
This commit is contained in:
parent
4edf38aa25
commit
da7baa0fbf
2 changed files with 13 additions and 3 deletions
|
@ -22,11 +22,11 @@ write-png.o: write-png.c write-png.h
|
|||
gcc -c write-png.c
|
||||
|
||||
clean:
|
||||
rm -f *.o $(SCM_PROGRAM).c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS) write-png *.png
|
||||
rm -f *.o $(SCM_PROGRAM).c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS) write-png *.png *.gif
|
||||
rm -rf tmp
|
||||
|
||||
convert:
|
||||
convert -resize 400x *.png
|
||||
convert -delay 10 -loop 0 *.png animated.gif
|
||||
./convert.sh
|
||||
|
||||
# A temporary directive to build the life program using GCC directly
|
||||
# For now, need to manually add "#include "../write-png.h"" to example/life.c to get it to build
|
||||
|
|
10
examples/game-of-life-png/convert.sh
Executable file
10
examples/game-of-life-png/convert.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
rm -rf tmp
|
||||
mkdir tmp
|
||||
for f in `find . -name "*.png"`
|
||||
do
|
||||
convert -resize 100x $f tmp/$f.resize.png
|
||||
done
|
||||
cd tmp
|
||||
convert -delay 10 -loop 0 *.png animated.gif
|
||||
|
Loading…
Add table
Reference in a new issue