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

All > SVG > Gradient Patterns > gradPatt-pattern-BE-07


File: gradPatt-pattern-BE-07
Author: Haroon Sheikh
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
pathd | style |
patternheight | id | patternUnits | width | x | y |
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">gradPatt-pattern-BE-07</title>
     <desc id="test-desc">Test that the viewer has basic capability to handle patterns on fills and stroke of objects and text.</desc>
     <g id="test-body-content">
          <rect x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
          <pattern patternUnits="userSpaceOnUse" id="pat1" x="10" y="10" width="20" height="20">
               <rect x="5" y="5" width="10" height="10" style="fill:red;"/>
               <rect x="10" y="10" width="10" height="10" style="fill:green;"/>
          </pattern>
          <rect x="10" y="10" width="430" height="80" style="stroke:black;fill:url(#pat1);"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="105">Pattern created using red and green rectangles applied to fill of rectangle</text>
          <pattern patternUnits="userSpaceOnUse" id="pat2" x="0" y="0" width="20" height="20">
               <rect x="0" y="0" width="10" height="10" style="fill:red;"/>
               <rect x="10" y="0" width="10" height="10" style="fill:green;"/>
               <rect x="0" y="10" width="10" height="10" style="fill:blue;"/>
               <rect x="10" y="10" width="10" height="10" style="fill:yellow;"/>
          </pattern>
          <rect x="25" y="130" width="400" height="50" style="fill:none;stroke:url(#pat2);stroke-width:30;"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="210">Pattern of 4 rectangles applied to a stroke of a rectangle.</text>
          <pattern patternUnits="userSpaceOnUse" id="pat3" x="0" y="0" width="10" height="20">
               <rect x="0" y="0" width="10" height="10" style="fill:red;"/>
               <rect x="0" y="10" width="10" height="10" style="fill:green;"/>
          </pattern>
          <text style="font-family:Helvetica;font-size:60;fill:url(#pat3);" x="10" y="270">Pattern on fill</text>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="285">Pattern consists of red and green rows</text>
          <pattern patternUnits="userSpaceOnUse" id="pat4" x="0" y="0" width="20" height="10">
               <rect x="0" y="0" width="10" height="10" style="fill:red;"/>
               <rect x="10" y="0" width="10" height="10" style="fill:blue;"/>
          </pattern>
          <text style="font-family:Helvetica;font-size:50;fill:none;stroke:url(#pat4);stroke-width:2;" x="10" y="350">Pattern on stroke</text>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="365">Pattern consists of red and blue columns</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">gradPatt-pattern-BE-07</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