SVG – Learning by Coding

[ clipPath.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 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: 
    <clipPath id="einclip">

14: 
      <circle cx="150" cy="120" r="80"/>

15: 
    </clipPath>

16: 
  </defs>

​17: 18: 
  <title>SVG Learning by Coding</title>

19: 
  <desc>SVG-Spezifikation in Beispielen</desc>

20: 
  <text x="20" y="30" style="fill: #000; font-size: 24px">Element clipPath</text>

​21: 22: 
  <g clip-path="url(#einclip)">

23: 
    <rect x="30" y="100" width="350" height="80"

24: 
      style="fill: #FFC; stroke: #00C; stroke-width: 1.5px"/>

25: 
  </g
​26: 27: 
</svg>

[zum Anfang]