ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Filters > filters-specularLt-BE-08


File: filters-specularLt-BE-08
Author: Vincent Hardy
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
defs
descid |
feDistantLightazimuth | elevation |
feSpecularLightingin | lighting-color | specularConstant | specularExponent | style | surfaceScale |
filterfilterUnits | height | id | width | x | y |
gid | style | transform |
imageheight | style | width | x | xlink:href | y |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">filters-specularLt-BE-08</title>
     <desc id="test-desc">Validates operation of the feSpecularLighting filter</desc>
     <g id="test-body-content">
          <text x="145" y="20" style="fill:black;font-size:12;font-family:Helvetica;">Filters: feSpecularLighting</text>
          <defs>
               <filter id="surfaceScaleA" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="1" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="surfaceScaleB" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="surfaceScaleC" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="-10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularConstantA" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="0" specularExponent="1" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularConstantB" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularConstantC" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="2" specularExponent="1" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularExponentA" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularExponentB" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="2" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="specularExponentC" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="4" surfaceScale="10" style="lighting-color:white;" lighting-color="white">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="lightingColorA" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:red;" lighting-color="red">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="lightingColorB" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:yellow;" lighting-color="yellow">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
               <filter id="lightingColorC" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
                    <feSpecularLighting in="SourceGraphic" specularConstant="1" specularExponent="1" surfaceScale="10" style="lighting-color:blue;" lighting-color="blue">
                         <feDistantLight azimuth="45" elevation="45"/>
                    </feSpecularLighting>
               </filter>
          </defs>
          <g transform="translate(0, 50)">
               <text x="90" y="25">Various values for surfaceScale: 1, 10 and -10</text>
               <g style="fill:black;">
                    <rect x="90" y="30" width="50" height="30"/>
                    <rect x="160" y="30" width="50" height="30"/>
                    <rect x="230" y="30" width="50" height="30"/>
               </g>
               <image xlink:href="bumpMap2.png" x="90" y="30" width="50" height="30" style="filter:url(#surfaceScaleA);"/>
               <image xlink:href="bumpMap2.png" x="160" y="30" width="50" height="30" style="filter:url(#surfaceScaleB);"/>
               <image xlink:href="bumpMap2.png" x="230" y="30" width="50" height="30" style="filter:url(#surfaceScaleC);"/>
          </g>
          <g transform="translate(0, 120)">
               <text x="90" y="25">Various values for specularConstants: 0, 1 and 2</text>
               <g style="fill:black;">
                    <rect x="90" y="30" width="50" height="30"/>
                    <rect x="160" y="30" width="50" height="30"/>
                    <rect x="230" y="30" width="50" height="30"/>
               </g>
               <image xlink:href="bumpMap2.png" x="90" y="30" width="50" height="30" style="filter:url(#specularConstantA);"/>
               <image xlink:href="bumpMap2.png" x="160" y="30" width="50" height="30" style="filter:url(#specularConstantB);"/>
               <image xlink:href="bumpMap2.png" x="230" y="30" width="50" height="30" style="filter:url(#specularConstantC);"/>
          </g>
          <g transform="translate(0, 190)">
               <text x="90" y="25">Various values for specularExponents: 1, 2 and 4</text>
               <g style="fill:black;">
                    <rect x="90" y="30" width="50" height="30"/>
                    <rect x="160" y="30" width="50" height="30"/>
                    <rect x="230" y="30" width="50" height="30"/>
               </g>
               <image xlink:href="bumpMap2.png" x="90" y="30" width="50" height="30" style="filter:url(#specularExponentA);"/>
               <image xlink:href="bumpMap2.png" x="160" y="30" width="50" height="30" style="filter:url(#specularExponentB);"/>
               <image xlink:href="bumpMap2.png" x="230" y="30" width="50" height="30" style="filter:url(#specularExponentC);"/>
          </g>
          <g transform="translate(0, 260)">
               <text x="90" y="25">Various values for lighting color: red, yellow and blue</text>
               <g style="fill:black;">
                    <rect x="90" y="30" width="50" height="30"/>
                    <rect x="160" y="30" width="50" height="30"/>
                    <rect x="230" y="30" width="50" height="30"/>
               </g>
               <image xlink:href="bumpMap2.png" x="90" y="30" width="50" height="30" style="filter:url(#lightingColorA);"/>
               <image xlink:href="bumpMap2.png" x="160" y="30" width="50" height="30" style="filter:url(#lightingColorB);"/>
               <image xlink:href="bumpMap2.png" x="230" y="30" width="50" height="30" style="filter:url(#lightingColorC);"/>
          </g>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">filters-specularLt-BE-08</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service