SVG – Learning by Coding

[ fill-rule.svg --> Grafik anzeigen ]

 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: <!--    AuthorDrThomas Meinike 03/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:   <text x="20" y="30" style="fill: #000; font-size: 24px">
15:     Eigenschaft fill-rule</text>
16: 
17:   <polygon points="122,59,72,205,194,114,49,114,171,205"
18:     style="fill-rule: nonzero; fill: #CFC; stroke: #000"/>
19: 
20:   <polygon points="321,60,271,206,393,115,248,115,370,206"
21:    style="fill-rule: evenodd; fill: #CFC; stroke: #000"/>
22: 
23:   <text x="90" y="240" style="fill: #090; font-size: 16px">
24:     nonzero</text>
25: 
26:   <text x="290" y="240" style="fill: #090; font-size: 16px">
27:     evenodd</text>
28: 
29: </svg>

[zum Anfang]