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

All > SVG > Filters > filters-blend-BE-02


File: filters-blend-BE-02
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
defs
descid |
feBlendin | in2 | mode |
filterid |
gid | style |
linearGradientgradientUnits | id | x1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
stopoffset | style |
svgheight | id | viewBox | width | x | y |
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-blend-BE-02</title>
     <desc id="test-desc">Overall filter effects test case. Extracted from example filters00 in the March 3, 2000 spec.</desc>
     <g id="test-body-content">
          <g style="font-size:12;font-family:Verdana;">
               <text x="20" y="30">Examples of the five feBlend modes</text>
               <text x="20" y="45">Five text strings blended into a gradient,</text>
               <text x="20" y="60">with one text string for each of the five feBlend modes.</text>
               <text x="20" y="75">The string indicates the blend mode.</text>
          </g>
          <svg x="85" y="90" width="280" height="280" viewBox="0 0 500 500">
               <title>Example feBlend - Examples of feBlend modes</title>
               <desc>Five text strings blended into a gradient, with one text string for each of the five feBlend modes.</desc>
               <defs>
                    <linearGradient id="MyGradient" gradientUnits="userSpaceOnUse" x1="100" y1="0" x2="300" y2="0">
                         <stop offset="0" style="stop-color:#000000;"/>
                         <stop offset=".33" style="stop-color:#ffffff;"/>
                         <stop offset=".67" style="stop-color:#ff0000;"/>
                         <stop offset="1" style="stop-color:#808080;"/>
                    </linearGradient>
                    <filter id="Normal">
                         <feBlend mode="normal" in2="BackgroundImage" in="SourceGraphic"/>
                    </filter>
                    <filter id="Multiply">
                         <feBlend mode="multiply" in2="BackgroundImage" in="SourceGraphic"/>
                    </filter>
                    <filter id="Screen">
                         <feBlend mode="screen" in2="BackgroundImage" in="SourceGraphic"/>
                    </filter>
                    <filter id="Darken">
                         <feBlend mode="darken" in2="BackgroundImage" in="SourceGraphic"/>
                    </filter>
                    <filter id="Lighten">
                         <feBlend mode="lighten" in2="BackgroundImage" in="SourceGraphic"/>
                    </filter>
               </defs>
               <rect style="fill:none;stroke:blue;" x="1" y="1" width="498" height="498"/>
               <g style="enable-background:new;">
                    <rect x="100" y="20" width="300" height="460" style="fill:url(#MyGradient);"/>
                    <g style="font-family:Verdana;font-size:75;fill:#888888;fill-opacity:.6;">
                         <text x="50" y="90" style="filter:url(#Normal);">Normal</text>
                         <text x="50" y="180" style="filter:url(#Multiply);">Multiply</text>
                         <text x="50" y="270" style="filter:url(#Screen);">Screen</text>
                         <text x="50" y="360" style="filter:url(#Darken);">Darken</text>
                         <text x="50" y="450" style="filter:url(#Lighten);">Lighten</text>
                    </g>
               </g>
          </svg>
     </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-blend-BE-02</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