SVG – Learning by Coding

[ filter_PointLight.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/03 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="point" filterUnits="userSpaceOnUse" x="20" y="70" width="250" height="150">

15: 
      <feSpecularLighting in="SourceGraphic" surfaceScale="3" specularConstant="4"

16: 
        specularExponent="10" lighting-color="#FFF">

17: 
        <fePointLight x="145" y="145" z="10"/>

18: 
      </feSpecularLighting>

19: 
    </filter>

​20: 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">

26: 
    Filter-Element fePointLight</text>

​27: 28: 
  <rect x="20" y="70" width="250" height="150" style="fill: #F00"/>

29: 
  <rect x="20" y="70" width="250" height="150" style="filter: url(#point)"/>

​30: 31: 
</svg>

[zum Anfang]