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

All > SVG > Paint > paint-fill-BE-01


File: paint-fill-BE-01
Author: Kevin McCluskey
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
color-profilename | xlink:href |
defs
descid |
gid | style |
linearGradientgradientUnits | id | x1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
stopoffset | style |
styletype |
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">paint-fill-BE-01</title>
     <desc id="test-desc"> Test that viewer has the basic capability to handle the <fill,fill-rule,fill-opacity properites> </desc>
     <g id="test-body-content">
          <defs>
               <color-profile name="colorChange" xlink:href="changeColor.icm"/>
               <style type="text/css"> @color-profile { name:colorChange; src:url(changeColor.icm) } </style>
          </defs>
          <text style="font-family:Helvetica;font-size:12;" x="160" y="14">Basic paint: fill properties.</text>
          <rect id="fill-01" style="fill:none;stroke:#000000;" x="30" y="86" width="50" height="100"/>
          <rect id="fill-02" style="fill:red;stroke:#000000;" x="130" y="86" width="50" height="100"/>
          <text style="font-family:Helvetica;font-size:12;" x="36" y="202">fill:none</text>
          <text style="font-family:Helvetica;font-size:12;" x="138" y="202">fill:red</text>
          <linearGradient id="fillgradient" gradientUnits="userSpaceOnUse" x1="250" y1="86" x2="250" y2="186">
               <stop offset="0%" style="stop-color:red;"/>
               <stop offset="100%" style="stop-color:blue;"/>
          </linearGradient>
          <rect id="fill-03" style="fill:url(#fillgradient);stroke:#000000;" x="250" y="86" width="50" height="100"/>
          <rect id="fill-04" style="color:blue;fill:currentColor;stroke:#000000;" x="350" y="86" width="50" height="100"/>
          <text style="font-family:Helvetica;font-size:12;" x="225" y="202">fill:url(#fillgradient)</text>
          <text style="font-family:Helvetica;font-size:12;" x="340" y="202">fill:currentColor</text>
          <path style="fill:red;fill-rule:evenodd;" d="M 60 266 l 25 80 l -65 -50 l 80 0 l -65 50 z"/>
          <path style="fill:red;fill-rule:nonzero;" d="M 170 266 l 25 80 l -65 -50 l 80 0 l -65 50 z"/>
          <text style="font-family:Helvetica;font-size:12;" x="23" y="382">fill-rule:evenodd</text>
          <text style="font-family:Helvetica;font-size:12;" x="121" y="382">fill-rule:nonzero</text>
          <rect id="fill-7" style="fill:#00FF00 icc-color(colorChange,255,0,0);stroke:#000000;" x="250" y="266" width="50" height="100"/>
          <rect id="fill-08a" style="fill:red;" x="370" y="256" width="50" height="100"/>
          <rect id="fill-08b" style="fill:blue;fill-opacity:0.5;" x="350" y="266" width="50" height="100"/>
          <text style="font-family:Helvetica;font-size:12;" x="245" y="382">fill:icc-color</text>
          <text style="font-family:Helvetica;font-size:12;" x="360" y="382">fill-opacity</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">paint-fill-BE-01</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