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="distant" filterUnits="userSpaceOnUse" x="20" y="70" width="375" height="220">
15: <feColorMatrix result="out1" in="SourceGraphic" type="luminanceToAlpha"/>
16: <feDiffuseLighting result="out2" in="out1" lighting-color="#FFF"
17: diffuseConstant="1.4" kernelUnitLength="1,1" surfaceScale="3">
18: <feDistantLight azimuth="40" elevation="30"/>
19: </feDiffuseLighting>
20: <feComposite in2="out2" in="SourceGraphic" operator="arithmetic"
21: k1="1" k2="0.3" k3="0.4" k4="0"/>
22: </filter>
23:
24: </defs>
25:
26: <title>SVG - Learning by Coding</title>
27: <desc>SVG-Spezifikation in Beispielen</desc>
28: <text x="20" y="30" style="fill: #000; font-size: 24px">
29: Filter-Element feDistantLight</text>
30:
31: <image xlink:href="bilder/bild1.jpg" x="20" y="70" width="375" height="220"
32: style="filter: url(#distant)"/>
33:
34: </svg>
[zum Anfang]