Debian Codegraph @

test_non_regression/svg/linecap.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="12cm" height="2cm" viewBox="0 0 1200 200" version="1.1"
5 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6 <desc>Example linecap - demonstrates three stroke-linecap values</desc>
7 <rect x="1" y="1" width="1198" height="198" fill="none" stroke="blue" />
8 <defs>
9 <line id="line1" x1="-125" x2="125" y1="0" y2="0" fill="none" />
10 <g id="circles">
11 <circle id="circle1" cx="-125" cy="0" r="8" fill="#ffcccc" stroke="none"/>
12 <circle id="circle2" cx="125" cy="0" r="8" fill="#ffcccc" stroke="none"/>
13 </g>
14 </defs>
15 <g transform="translate(200,75)">
16 <use stroke="black" stroke-width="70" xlink:href="#line1"
17 stroke-linecap="butt"/>
18 <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
19 <use xlink:href="#circles"/>
20 <text text-anchor="middle" font-size="50" font-family="Liberation Sans"
21 y="90">'butt' cap</text>
22 </g>
23 <g transform="translate(600,75)">
24 <use stroke="black" stroke-width="70" xlink:href="#line1"
25 stroke-linecap="round"/>
26 <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
27 <use xlink:href="#circles"/>
28 <text text-anchor="middle" font-size="50" font-family="Liberation Sans"
29 y="90">'round' cap</text>
30 </g>
31 <g transform="translate(1000,75)">
32 <use stroke="black" stroke-width="70" xlink:href="#line1"
33 stroke-linecap="square"/>
34 <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
35 <use xlink:href="#circles"/>
36 <text text-anchor="middle" font-size="50" font-family="Liberation Sans"
37 y="90">'square' cap</text>
38 </g>
39 </svg>