1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
3
#set $one_tenth_of_an_inch = 7.199
4
<svg version="1.1" baseProfile="basic" id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
5
x="0px" y="0px" width="${0.10*int($pins)}in" height="0.10in" viewBox="0 0 ${$one_tenth_of_an_inch*int($pins)} 7.199" xml:space="preserve">
8
#for $pin in range(int($pins))
9
#set $offset = $pin*$one_tenth_of_an_inch
10
<rect id="connector${pin}pin" x="${$offset+2.204}" y="2.204" fill="none" width="2.791" height="2.791"/>
11
<rect id="connector${pin}terminal" x="${$offset+2.518}" y="2.469" fill="none" width="2.164" height="2.262"/>
14
#for $pin in range(int($pins))
15
#set $offset = $pin*$one_tenth_of_an_inch
17
<polygon fill="#404040" points="${$offset+1.563},0 $offset,1.564 $offset,5.637 ${$offset+1.563},7.199 ${$offset+5.635},7.199 ${$offset+7.199},5.637 ${$offset+7.199},1.564 ${$offset+5.635},0 ${$offset+1.563},0"/>
20
<rect x="${$offset+2.451}" y="2.45" fill="#8D8C8C" width="2.297" height="2.299"/>
21
<rect x="${$offset+3.009}" y="3.008" fill="#8C8663" width="1.182" height="1.183"/>
22
<polygon fill="#B8AF82" points="${$offset+2.451},2.45 ${$offset+3.009},3.008 ${$offset+4.19},3.008 ${$offset+4.748},2.45"/>
23
<polygon fill="#80795B" points="${$offset+4.19},4.19 ${$offset+4.19},3.008 ${$offset+4.748},2.45 ${$offset+4.748},4.749 "/>
24
<polygon fill="#5E5B43" points="${$offset+3.009},4.19 ${$offset+4.19},4.19 ${$offset+4.748},4.749 ${$offset+2.451},4.749 "/>
25
<polygon fill="#9A916C" points="${$offset+2.451},2.45 ${$offset+3.009},3.008 ${$offset+3.009},4.19 ${$offset+2.451},4.749 "/>