SVG – Learning by Coding
1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3: "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4: <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5: ]>
6:
7: <!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8: <!-- Author: Dr. Thomas Meinike 12/03 - thomas@handmadecode.de -->
9:
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11:
12: <defs>
13:
14: <filter id="spot" filterUnits="userSpaceOnUse" x="20" y="70" width="250" height="150">
15: <feSpecularLighting in="SourceGraphic" surfaceScale="2" specularConstant="1.3"
16: specularExponent="10" lighting-color="#FFF">
17: <feSpotLight x="110" y="120" z="130" pointsAtX="150" pointsAtY="150" pointsAtZ="0"
18: specularExponent="10" limitingConeAngle="90"/>
19: </feSpecularLighting>
20: </filter>
21:
22: </defs>
23:
24: <title>SVG - Learning by Coding</title>
25: <desc>SVG-Spezifikation in Beispielen</desc>
26: <text x="20" y="30" style="fill: #000; font-size: 24px">
27: Filter-Element feSpotLight</text>
28:
29: <rect x="20" y="70" width="250" height="150" style="fill: #F00"/>
30: <rect x="20" y="70" width="250" height="150" style="filter: url(#spot)"/>
31:
32: </svg>
[zum Anfang]