1 | #!/bin/sh |
1 | #!/bin/sh |
2 | |
2 | |
3 | WIDTH=11 |
3 | WIDTH=15 |
4 | BLUR=4,4 |
4 | BLUR=4.5,8 |
5 | |
5 | |
6 | draw() { |
6 | draw() { |
7 | white=$1 |
7 | white=$1 |
8 | w=$2 |
8 | w=$2 |
9 | |
9 | |
… | |
… | |
13 | -blur $BLUR \ |
13 | -blur $BLUR \ |
14 | circle-$w.png |
14 | circle-$w.png |
15 | |
15 | |
16 | convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ |
16 | convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ |
17 | +fill -stroke $white \ |
17 | +fill -stroke $white \ |
18 | -draw "stroke-antialias 1 stroke-width $WIDTH roundrectangle 35.5,35.5 116.5,116.5 8,8" \ |
18 | -draw "stroke-antialias 1 stroke-width $WIDTH roundrectangle 37.5,37.5 114.5,114.5 8,8" \ |
19 | -blur $BLUR \ |
19 | -blur $BLUR \ |
20 | square-$w.png |
20 | square-$w.png |
21 | |
21 | |
22 | convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ |
22 | convert -size 152x152 xc:$white -matte -fill none -draw "matte 0,0 reset" -channel rgba \ |
23 | +fill -stroke $white \ |
23 | +fill -stroke $white \ |
24 | -draw "stroke-antialias 1 stroke-width $WIDTH line 35,35 117,117 line 117,35 35,117" \ |
24 | -draw "stroke-antialias 1 stroke-width $WIDTH line 40,40 112,112 line 112,40 40,112" \ |
25 | -blur $BLUR \ |
25 | -blur $BLUR \ |
26 | cross-$w.png |
26 | cross-$w.png |
27 | |
27 | |
28 | R=46 |
28 | R=46 |
29 | A=$(perl -e "print 76.5-$R") |
29 | A=$(perl -e "print 76.5-$R") |