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/02 - 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: <linearGradient id="lingra">
14: <stop offset="0%" stop-color="#FFF" stop-opacity="0"/>
15: <stop offset="100%" stop-color="#FFF" stop-opacity="1"/>
16: </linearGradient>
17:
18: <mask id="einemaske" maskUnits="userSpaceOnUse">
19: <rect x="30" y="60" width="300" height="100" fill="url(#lingra)"/>
20: </mask>
21: </defs>
22:
23: <title>SVG - Learning by Coding</title>
24: <desc>SVG-Spezifikation in Beispielen</desc>
25: <text x="20" y="30" style="fill: #000; font-size: 24px">Element mask</text>
26:
27: <rect x="30" y="60" width="300" height="100" fill="#FFC" />
28:
29: <text id="masktext" x="60" y="120" style="fill: #00C; mask: url(#einemaske);
30: font-size: 36px">
31: Maskierter Text
32: </text>
33:
34: </svg>
[zum Anfang]