mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +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
|
gcc -c write-png.c
|
||||||
|
|
||||||
clean:
|
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:
|
||||||
convert -resize 400x *.png
|
./convert.sh
|
||||||
convert -delay 10 -loop 0 *.png animated.gif
|
|
||||||
|
|
||||||
# A temporary directive to build the life program using GCC directly
|
# 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
|
# 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