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

All > SVG > Gradient Patterns > gradPatt-radialGr-BE-04


File: gradPatt-radialGr-BE-04
Author: Haroon Sheikh
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
pathd | style |
radialGradientcx | cy | fx | fy | gradientUnits | id | r |
rectheight | id | style | width | x | y |
stopoffset | style |
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-radialGr-BE-04</title>
     <desc id="test-desc">Test that the viewer has basic capability to handle radial gradients on fills and stroke of objects and text. This means it needs to understand the following elements : <radialGradient>, <stop> and the following properties : stop-color, fill:url(# ), stroke(url# )</desc>
     <g id="test-body-content">
          <rect x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
          <radialGradient gradientUnits="userSpaceOnUse" id="Grad1" cx="115" cy="100" r="90" fx="115" fy="100">
               <stop style="stop-color:black;" offset="0"/>
               <stop style="stop-color:red;" offset="1"/>
          </radialGradient>
          <rect x="10" y="10" width="210" height="180" style="fill:url(#Grad1);"/>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="205">Radial gradient on fill of rectangle</text>
          <radialGradient id="Grad2" gradientUnits="userSpaceOnUse" cx="335" cy="100" r="110" fx="335" fy="100">
               <stop style="stop-color:red;" offset="0"/>
               <stop style="stop-color:yellow;" offset="1"/>
          </radialGradient>
          <rect x="250" y="30" width="170" height="140" style="fill:none;stroke:url(#Grad2);stroke-width:40;"/>
          <text style="font-family:Helvetica;font-size:12;" x="230" y="205">Radial gradient on stroke of rectangle</text>
          <radialGradient id="Grad3" gradientUnits="userSpaceOnUse" cx="225" cy="240" r="90" fx="225" fy="240">
               <stop style="stop-color:black;" offset="0"/>
               <stop style="stop-color:yellow;" offset="1"/>
          </radialGradient>
          <text style="font-family:Helvetica;font-size:60;fill:url(#Grad3);" x="10" y="270">Gradient on fill</text>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="285">Radial gradient on text, black to yellow</text>
          <radialGradient id="Grad4" gradientUnits="userSpaceOnUse" cx="225" cy="325" r="90" fx="225" fy="325">
               <stop style="stop-color:black;" offset="0"/>
               <stop style="stop-color:red;" offset="1"/>
          </radialGradient>
          <text style="font-family:Helvetica;font-size:50;fill:none;stroke:url(#Grad4);stroke-width:2;" x="10" y="350">Gradient on stroke</text>
          <text style="font-family:Helvetica;font-size:12;" x="10" y="365">Radial gradient on stroke of text, black to red</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-radialGr-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: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service