Debian Codegraph @

rsvg/tests/fixtures/reftests/filter-conv-divisor.svg

raw symbols SCIP
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4
5 <!-- no divisor specified, sum of matrix elements is 0: divisor is 1 -->
6 <filter id="conv1">
7 <feConvolveMatrix kernelMatrix="1 0 0
8 0 0 0
9 0 0 -1"/>
10 </filter>
11
12 <!-- divisor set to 0, sum of matrix elements is 0: divisor is 1 -->
13 <filter id="conv2">
14 <feConvolveMatrix kernelMatrix="1 0 0
15 0 0 0
16 0 0 -1" divisor="0"/>
17 </filter>
18
19 <!-- no divisor specified, sum of matrix elements is 2: divisor is 2 -->
20 <filter id="conv3">
21 <feConvolveMatrix kernelMatrix="1 0 0
22 0 0 0
23 0 0 1"/>
24 </filter>
25
26 <!-- divisor set to 0, sum of matrix elements is 2: divisor is 2 -->
27 <filter id="conv4">
28 <feConvolveMatrix kernelMatrix="1 0 0
29 0 0 0
30 0 0 1" divisor="0"/>
31 </filter>
32
33 <!-- divisor set to 1, sum of matrix elements is 2: divisor is 1 -->
34 <filter id="conv5">
35 <feConvolveMatrix kernelMatrix="1 0 0
36 0 0 0
37 0 0 1" divisor="1"/>
38 </filter>
39
40 <g transform="translate(20 20)">
41 <rect fill="blue" x="1" y="1" width="100" height="100"/>
42 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50"/>
43 </g>
44
45 <g transform="translate(140 20)">
46 <rect fill="blue" x="1" y="1" width="100" height="100"/>
47 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50" filter="url(#conv1)"/>
48 </g>
49
50 <g transform="translate(260 20)">
51 <rect fill="blue" x="1" y="1" width="100" height="100"/>
52 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50" filter="url(#conv2)"/>
53 </g>
54
55 <g transform="translate(20 140)">
56 <rect fill="blue" x="1" y="1" width="100" height="100"/>
57 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50" filter="url(#conv3)"/>
58 </g>
59
60 <g transform="translate(140 140)">
61 <rect fill="blue" x="1" y="1" width="100" height="100"/>
62 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50" filter="url(#conv4)"/>
63 </g>
64
65 <g transform="translate(260 140)">
66 <rect fill="blue" x="1" y="1" width="100" height="100"/>
67 <rect fill="blue" stroke="white" stroke-width="2" x="25" y="25" width="50" height="50" filter="url(#conv5)"/>
68 </g>
69
70 </svg>