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="blend-normal" filterUnits="userSpaceOnUse"
15:
x="20" y="70" width="375" height="220">
16:
<feImage xlink:href="bilder/bild1.jpg" result="b1"/>
17:
<feImage xlink:href="bilder/bild2.jpg" result="b2"/>
18:
<feBlend in="b1" in2="b2" mode="normal"/>
19:
</filter>
20: 21:
<filter id="blend-darken" filterUnits="userSpaceOnUse"
22:
x="395" y="70" width="375" height="220">
23:
<feImage xlink:href="bilder/bild1.jpg" result="b1"/>
24:
<feImage xlink:href="bilder/bild2.jpg" result="b2"/>
25:
<feBlend in="b1" in2="b2" mode="darken"/>
26:
</filter>
27: 28:
<filter id="blend-lighten" filterUnits="userSpaceOnUse"
29:
x="20" y="290" width="375" height="220">
30:
<feImage xlink:href="bilder/bild1.jpg" result="b1"/>
31:
<feImage xlink:href="bilder/bild2.jpg" result="b2"/>
32:
<feBlend in="b1" in2="b2" mode="lighten"/>
33:
</filter>
34: 35:
<filter id="blend-multiply" filterUnits="userSpaceOnUse"
36:
x="395" y="290" width="375" height="220">
37:
<feImage xlink:href="bilder/bild1.jpg" result="b1"/>
38:
<feImage xlink:href="bilder/bild2.jpg" result="b2"/>
39:
<feBlend in="b1" in2="b2" mode="multiply"/>
40:
</filter>
41: 42:
<filter id="blend-screen" filterUnits="userSpaceOnUse"
43:
x="20" y="510" width="375" height="220">
44:
<feImage xlink:href="bilder/bild1.jpg" result="b1"/>
45:
<feImage xlink:href="bilder/bild2.jpg" result="b2"/>
46:
<feBlend in="b1" in2="b2" mode="screen"/>
47:
</filter>
48: 49:
</defs>
50: 51:
<title>SVG - Learning by Coding</title>
52:
<desc>SVG-Spezifikation in Beispielen</desc>
53:
<text x="20" y="30" style="fill: #000; font-size: 24px">
54:
Filter-Elemente feImage und feBlend</text>
55: 56:
<g transform="scale(0.6)">
57:
<rect x="20" y="70" width="375" height="220" style="filter: url(#blend-normal)"/>
58:
<rect x="395" y="70" width="375" height="220" style="filter: url(#blend-darken)"/>
59:
<rect x="20" y="290" width="375" height="220" style="filter: url(#blend-lighten)"/>
60:
<rect x="395" y="290" width="375" height="220" style="filter: url(#blend-multiply)"/>
61:
<rect x="20" y="510" width="375" height="220" style="filter: url(#blend-screen)"/>
62:
</g>
63: 64:
<text x="285" y="340"><tspan style="fill: #000"><feBlend ... </tspan>
65:
<tspan style="fill: #F00">mode="..."</tspan><tspan style="fill: #000"> /></tspan>
66:
</text>
67:
<rect x="300" y="360" width="50" height="20" style="fill: #EEE"/>
68:
<text x="305" y="375" style="fill: #F00">normal</text>
69:
<rect x="350" y="360" width="50" height="20" style="fill: #EEE"/>
70:
<text x="355" y="375" style="fill: #F00">darken</text>
71:
<rect x="300" y="380" width="50" height="20" style="fill: #EEE"/>
72:
<text x="305" y="395" style="fill: #F00">lighten</text>
73:
<rect x="350" y="380" width="50" height="20" style="fill: #EEE"/>
74:
<text x="355" y="395" style="fill: #F00">multiply</text>
75:
<rect x="300" y="400" width="50" height="20" style="fill: #EEE"/>
76:
<text x="305" y="415" style="fill: #F00">screen</text>
77: 78:
</svg>
[zum Anfang]