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 02/03 - thomas@handmadecode.de -->
9:
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11:
12: <title>SVG - Learning by Coding</title>
13: <desc>SVG-Spezifikation in Beispielen</desc>
14:
15: <defs>
16:
17: <style type="text/css">
18: <![CDATA[
19:
20: *
21: {
22: font-family: sans-serif;
23: font-size: 12px;
24: }
25:
26: ]]>
27: </style>
28:
29: </defs>
30:
31: <text x="20" y="30" style="fill: #000; font-size: 24px">Farben in SVG definieren</text>
32:
33: <rect x="20" y="50" width="50" height="20" style="fill: #FFFF00"/>
34: <text x="80" y="65">Farbwert: #FFFF00 [Hexwert, sechsstellig)</text>
35: <rect x="20" y="80" width="50" height="20" style="fill: #F00"/>
36: <text x="80" y="95">Farbwert: #F00 [Hexwert in Kurzform, #F00 = #FF0000]</text>
37: <rect x="20" y="110" width="50" height="20" style="fill: rgb(0,128,0)"/>
38: <text x="80" y="125">Farbwert: rgb(0,128,0) [RGB 0-255]</text>
39: <rect x="20" y="140" width="50" height="20" style="fill: rgb(0%,0%,100%)"/>
40: <text x="80" y="155">Farbwert: rgb(0%,0%,100%) [RGB 0%-100%]</text>
41: <rect x="20" y="170" width="50" height="20" style="fill: black"/>
42: <text x="80" y="185">Farbwert: black [Farbname, siehe </text>
43: <a xlink:href="../?doc=farbnamen" target="_top">
44: <text x="265" y="185">farbnamen.svg]</text>
45: </a>
46:
47: </svg>
[zum Anfang]