Apache-AxKit-Language-Svg2AnyFormat
view release on metacpan or search on metacpan
examples/gradients.svg view on Meta::CPAN
<!-- Pattern Gradient -->
<radialGradient id="yellowPatternBall" gradientUnits="objectBoundingBox"
fx="30%" fy="30%" >
<stop offset="0%" style="stop-color:white" />
<stop offset="20%" style="stop-color:yellow" />
<stop offset="40%" style="stop-color:orange" />
<stop offset="100%" style="stop-color:#442200" />
</radialGradient>
<linearGradient id="backgroundGradient" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="400" y2="300">
<stop offset="0%" style="stop-color:white" />
<stop offset="50%" style="stop-color:#666688" />
<stop offset="100%" style="stop-color:black" />
</linearGradient>
<circle id="ball" cx="0" cy="0" r="30" style="fill:url(#patternBall)" />
<circle id="yellowBall" cx="0" cy="0" r="30" style="fill:url(#yellowPatternBall)" />
<g id="ballRow">
<use xlink:href="#ball" x="30" y="30" />
examples/gradients.svg view on Meta::CPAN
<use xlink:href="#ball" x="210" y="30" />
<use xlink:href="#ball" x="270" y="30" />
<use xlink:href="#ball" x="330" y="30" />
<use xlink:href="#ball" x="390" y="30" />
<use xlink:href="#ball" x="450" y="30" />
</g>
</defs>
<!-- Background sky -->
<rect x="0" y="0" width="100%" height="300" style="fill:url(#backgroundGradient)" />
<!-- Background Texture -->
<use xlink:href="#ballRow" x="0" y="270"/>
<use xlink:href="#ballRow" x="-30" y="300"/>
<use xlink:href="#yellowBall" x="120" y="330" />
<use xlink:href="#ballRow" x="0" y="330"/>
<use xlink:href="#ballRow" x="-30" y="360"/>
<use xlink:href="#ballRow" x="0" y="390"/>
<!-- Group which contains all the happy face elements -->
( run in 1.446 second using v1.01-cache-2.11-cpan-0d23b851a93 )