SVG – Learning by Coding

[ filter_feFilterName.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: 14: 
    <filter id="einfilter">

15: 
      <feGaussianBlur in="SourceAlpha" stdDeviation="4" result="out1"/>

16: 
      <feSpecularLighting in="out1" specularExponent="10" surfaceScale="3" result="out2">

17: 
        <fePointLight x="150" y="300" z="300"/>

18: 
      </feSpecularLighting>

19: 
      <feComposite in="SourceGraphic" in2="out2" operator="arithmetic"

20: 
        k1="0" k2="1" k3="1" k4="0"/>

21: 
    </filter>

​22: 23: 
  </defs>

​24: 25: 
  <title>SVG Learning by Coding</title>

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

27: 
  <text x="20" y="30" style="fill: #000; font-size: 24px">Elemente filter feFilterName</text>

​28: 29: 
  <circle cx="100" cy="100" r="50" style="fill: #090; filter: url(#einfilter)"/>

​30: 31: 
  <a xlink:href="../?doc=barchart" target="_top">

32: 
    <text x="30" y="180" style="fill: #090; font-size: 18px">

33: 
      Weitere Filter werden im Beispiel barchart.svg verwendet.

34: 
    </text>

35: 
  </a>

​36: 37: 
</svg>

[zum Anfang]