Debian Codegraph @

rsvg/tests/fixtures/reftests/filter-kernel-unit-length.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 <!-- The test checks that kernelUnitLength is handled properly by filters which support it. -->
6 <filter id="convolve-matrix">
7 <feConvolveMatrix kernelUnitLength="2 1" x="0" y="0" width="25" height="25" edgeMode="wrap" order="5" targetX="0" targetY="0" kernelMatrix="1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"/>
8 </filter>
9
10 <filter id="pointLightA" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
11 <feDiffuseLighting kernelUnitLength="2" in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
12 <fePointLight x="0" y="0" z="10"/>
13 </feDiffuseLighting>
14 </filter>
15 <filter id="spotLightD" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
16 <feDiffuseLighting kernelUnitLength="0.25" in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
17 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="30"/>
18 </feDiffuseLighting>
19 </filter>
20
21 <g transform="translate(30 20)" filter="url(#convolve-matrix)">
22 <rect fill="red" x="1" y="1" width="50" height="50"/>
23 <rect fill="green" x="6" y="6" width="40" height="40"/>
24 </g>
25
26 <g transform="translate(30 60)">
27 <image xlink:href="svg1.1/images/bumpMap2.png" width="50" height="30" filter="url(#pointLightA)"/>
28 <rect transform="translate(70, 0)" width="50" height="30" filter="url(#spotLightD)"/>
29 </g>
30 </svg>