-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeIcosahedronNet.sh
executable file
·73 lines (62 loc) · 2.04 KB
/
makeIcosahedronNet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
echo "Starting to make Icosahedron net..."
cd out/
color=0 #1 for color, 0 for not
mogrify -trim +repage -transparent white -shave 1x1 -trim -format png -path ./png ./*.png
convert ./png/0.png -quality 01 -flip ./png/rot/0.png
convert ./png/4.png -quality 01 -flip ./png/rot/4.png
convert ./png/8.png -quality 01 -flip ./png/rot/8.png
convert ./png/12.png -quality 01 -flip ./png/rot/12.png
convert ./png/16.png -quality 01 -flip ./png/rot/16.png
convert ./png/2.png -quality 01 -flip ./png/rot/2.png
convert ./png/6.png -quality 01 -flip ./png/rot/6.png
convert ./png/10.png -quality 01 -flip ./png/rot/10.png
convert ./png/14.png -quality 01 -flip ./png/rot/14.png
convert ./png/18.png -quality 01 -flip ./png/rot/18.png
#convert \
#./png/rot/0.png \
#./png/1.png -smush 0 \
#-transparent white \
#./png/rot/2.png -gravity South +smush 0 \
#-transparent white \
#./png/3.png -gravity SouthEast -smush 0 \
#net.png
convert \
./png/rot/0.png \
./png/rot/4.png \
./png/rot/8.png \
./png/rot/12.png \
./png/rot/16.png \
-quality 01 \
+smush 1 top.png
convert \
./png/1.png \
./png/rot/2.png \
./png/5.png \
./png/rot/6.png \
./png/9.png \
./png/rot/10.png \
./png/13.png \
./png/rot/14.png \
./png/17.png \
./png/rot/18.png \
-quality 01 \
+smush -2 -transparent white middle.png
convert \
./png/3.png \
./png/7.png \
./png/11.png \
./png/15.png \
./png/19.png \
-quality 01 \
+smush 1 bottom.png
convert bottom.png -quality 01 -gravity West -splice 100x0 -transparent white bottomExp.png
convert top.png middle.png -quality 01 -smush 0 -transparent white topMiddle.png
#Don't want -quality 01 bc want compression for smaller file size, no more IO processing!
convert topMiddle.png bottomExp.png -gravity NorthEast -smush 0 ../net.png
ls -lah ../net*.png
echo "DONE! Check net.png"
#convert \
#topMiddle.png bottom.png \
#-set page "+0+200" \
#-layers Merge +repage \
#net.png