Debian Codegraph @

testsuite/svg/renderer/filter-image-shenanigans.svg

raw symbols SCIP
1 <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
2 <defs>
3 <g id="foo">
4 <rect x="0" y="0" width="100" height="100" fill="red" />
5 <rect x="100" y="0" width="100" height="100" fill="lime" />
6 <rect x="100" y="100" width="100" height="100" fill="blue" />
7 <rect x="0" y="100" width="100" height="100" fill="yellow" />
8 </g>
9 <filter id="topleft">
10 <feImage href="#foo" x="0%" y="0%" width="50%" height="50%"/>
11 </filter>
12 <filter id="top">
13 <feImage href="#foo" x="25%" y="0%" width="50%" height="50%"/>
14 </filter>
15 <filter id="topright">
16 <feImage href="#foo" x="50%" y="0%" width="50%" height="50%"/>
17 </filter>
18 <filter id="left">
19 <feImage href="#foo" x="0%" y="25%" width="50%" height="50%"/>
20 </filter>
21 <filter id="center">
22 <feImage href="#foo" x="25%" y="25%" width="50%" height="50%"/>
23 </filter>
24 <filter id="right">
25 <feImage href="#foo" x="50%" y="25%" width="50%" height="50%"/>
26 </filter>
27 <filter id="bottomleft">
28 <feImage href="#foo" x="0%" y="50%" width="50%" height="50%"/>
29 </filter>
30 <filter id="bottom">
31 <feImage href="#foo" x="25%" y="50%" width="50%" height="50%"/>
32 </filter>
33 <filter id="bottomright">
34 <feImage href="#foo" x="50%" y="50%" width="50%" height="50%"/>
35 </filter>
36 </defs>
37 <rect x="0" y="0" width="100" height="100" filter="url(#topleft)" />
38 <rect x="150" y="0" width="100" height="100" filter="url(#top)" />
39 <rect x="300" y="0" width="100" height="100" filter="url(#topright)" />
40 <rect x="0" y="150" width="100" height="100" filter="url(#left)" />
41 <rect x="150" y="150" width="100" height="100" filter="url(#center)" />
42 <rect x="300" y="150" width="100" height="100" filter="url(#right)" />
43 <rect x="0" y="300" width="100" height="100" filter="url(#bottomleft)" />
44 <rect x="150" y="300" width="100" height="100" filter="url(#bottom)" />
45 <rect x="300" y="300" width="100" height="100" filter="url(#bottomright)" />
46 </svg>