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

All > SVG > Masking > masking-groupOpac-BE-04


File: masking-groupOpac-BE-04
Author: Haroon Sheikh
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
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">masking-groupOpac-BE-04</title>
     <desc id="test-desc">Test to see the effect of applying an opacity property to a group.</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:14;" x="100" y="20">Test for opacity property on a group.</text>
          <rect x="10" y="30" width="100" height="350" style="fill:red;"/>
          <g style="opacity:1;">
               <rect x="60" y="50" width="80" height="40" style="fill:blue;"/>
               <rect x="70" y="70" width="80" height="40" style="fill:lime;"/>
          </g>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="65">Group opacity: 1</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="80">Blue rectangle opacity: 1</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="95">Green rectangle opacity: 1</text>
          <g style="opacity:0.5;">
               <rect x="60" y="130" width="80" height="40" style="fill:blue;"/>
               <rect x="70" y="150" width="80" height="40" style="fill:lime;"/>
          </g>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="145">Group opacity: 0.5</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="160">Blue rectangle opacity: 1</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="175">Green rectangle opacity: 1</text>
          <g style="opacity:1;">
               <rect x="60" y="210" width="80" height="40" style="fill:blue;opacity:.5;"/>
               <rect x="70" y="230" width="80" height="40" style="fill:lime;opacity:.5;"/>
          </g>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="225">Group opacity: 1</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="240">Blue rectangle opacity: 0.5</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="255">Green rectangle opacity: 0.5</text>
          <g style="opacity:0.5;">
               <rect x="60" y="290" width="80" height="40" style="fill:blue;opacity:.5;"/>
               <rect x="70" y="310" width="80" height="40" style="fill:lime;opacity:.5;"/>
          </g>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="305">Group opacity: 0.5</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="320">Blue rectangle opacity: 0.5</text>
          <text style="font-family:Helvetica;font-size:12;" x="200" y="335">Green rectangle opacity: 0.5</text>
     </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">masking-groupOpac-BE-04</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: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service