|
<!DOCTYPE
svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="415" height="415" xmlns="http://www.w3.org/2000/svg"
version="1.1">
<title>Verschiedene Lichtquellen</title>
<defs>
<style type="text/css"><![CDATA[
text {
font-size: 9pt;
fill: #AAAAAA;
}
]]></style>
<filter id="LichtFilter"
filterUnits="objectBoundingBox" x="0" y="0"
width="100%" height="100%">
<feDiffuseLighting in="SourceGraphic">
<fePointLight x="50"
y="50" z="10" />
</feDiffuseLighting>
</filter>
<filter id="distantLichtFilter"
filterUnits="objectBoundingBox" x="0" y="0"
width="100%" height="100%">
<feDiffuseLighting in="SourceGraphic"
lighting-color="red">
<feDistantLight
azimuth="2" elevation="10"/>
</feDiffuseLighting>
</filter>
<filter id="spotLichtFilter"
filterUnits="objectBoundingBox" x="0" y="0"
width="100%" height="100%">
<feDiffuseLighting in="SourceGraphic"
lighting-color="#FFFF00">
<feSpotLight x="0"
y="120" z="100" pointsAtY="350" pointsAtX="150"
pointsAtZ="0" limitingConeAngle="30" specularExponent="100"/>
</feDiffuseLighting>
</filter>
</defs>
<rect x="5" y="5" width="200"
height="200" filter="url(#LichtFilter)"/>
<text x="100" y="180">Punktlichtquelle</text>
<rect x="210" y="5" width="200"
height="200" filter="url(#distantLichtFilter)"/>
<text x="300" y="180">Parallellichtquelle</text>
<rect x="5" y="210" width="200"
height="200" filter="url(#spotLichtFilter)"/>
<text x="100" y="380">Spotlichtquelle</text>
<rect x="210" y="210" width="200"
height="200" filter="url(#spotLichtFilter)"/>
<text x="300" y="380">Spotlichtquelle</text>
</svg>
|
|