You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/09/13 10:36:41 UTC
cvs commit: xml-batik/samples/tests gradientLimit.svg
vhardy 01/09/13 01:36:41
Added: samples/tests gradientLimit.svg
Log:
New limit test on gradients.
Revision Changes Path
1.1 xml-batik/samples/tests/gradientLimit.svg
Index: gradientLimit.svg
===================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Limit test on gradients. -->
<!-- -->
<!-- @author vhardy@apache.org -->
<!-- @version $Id: gradientLimit.svg,v 1.1 2001/09/13 08:36:41 vhardy Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
<title>Limit test on Gradients</title>
<text x="50%" y="45" class="title">Gradient Limit Test</text>
<g id="testContent">
<g id="closeOffsetsLinear">
<title>Close Offsets on linearGradient</title>
<desc>The last two offsets of this linearGradient are
very close (0.000001) to one-another</desc>
<linearGradient id="closeOffsetsLinearGradient" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1">
<stop offset="0" style="stop-color:crimson"/>
<stop offset="0.999999" style="stop-color:gold"/>
<stop offset="1" style="stop-color:crimson"/>
</linearGradient>
<rect fill="url(#closeOffsetsLinearGradient)" x="35" y="80" width="80" height="40" />
<text class="legend" x="75" y="135">Two close offsets</text>
<text class="legend" x="75" y="150"><linearGradient></text>
</g>
<g id="closeOffsetsLinear2" transform="translate(150, 0)">
<title>Close Offsets on linearGradient</title>
<desc>The last two offsets of this linearGradient are
very close (0.00000001) to one-another, with a
difference below the single precision floating
point</desc>
<linearGradient id="closeOffsetsLinearGradient2" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1">
<stop offset="0" style="stop-color:crimson"/>
<stop offset="0.99999999" style="stop-color:gold"/>
<stop offset="1" style="stop-color:crimson"/>
</linearGradient>
<rect fill="url(#closeOffsetsLinearGradient2)" x="35" y="80" width="80" height="40" />
<text class="legend" x="75" y="135">Two very close offsets</text>
<text class="legend" x="75" y="150"><linearGradient></text>
</g>
<g id="closeOffsetsRadial" transform="translate(0, 100)">
<title>Close Offsets on radialGradient</title>
<desc>The last two offsets of this radialGradient are
very close (0.000001) to one-another</desc>
<radialGradient id="closeOffsetsRadialGradient" gradientUnits="objectBoundingBox" r=".1">
<stop offset="0" style="stop-color:crimson"/>
<stop offset="0.999999" style="stop-color:gold"/>
<stop offset="1" style="stop-color:crimson"/>
</radialGradient>
<rect fill="url(#closeOffsetsRadialGradient)" x="35" y="80" width="80" height="40" />
<text class="legend" x="75" y="135">Two close offsets</text>
<text class="legend" x="75" y="150"><radialGradient></text>
</g>
<g id="closeOffsetsRadial2" transform="translate(150, 100)">
<title>Close Offsets on radialGradient</title>
<desc>The last two offsets of this radialGradient are
very close (0.00000001) to one-another</desc>
<radialGradient id="closeOffsetsRadialGradient2" gradientUnits="objectBoundingBox" r=".1">
<stop offset="0" style="stop-color:crimson"/>
<stop offset="0.99999999" style="stop-color:gold"/>
<stop offset="1" style="stop-color:crimson"/>
</radialGradient>
<rect fill="url(#closeOffsetsRadialGradient2)" x="35" y="80" width="80" height="40" />
<text class="legend" x="75" y="135">Two very close offsets</text>
<text class="legend" x="75" y="150"><radialGradient></text>
</g>
<g id="closeControlsLinear" transform="translate(300, 0)">
<title>Close control points on linearGradient</title>
<desc>The y coordinates on the gradient are close
(0.00000001) to one-another</desc>
<linearGradient id="closeControlsLinearGradient" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="0.00000001">
<stop offset="0" stop-color="gold"/>
<stop offset="1" stop-color="crimson"/>
</linearGradient>
<rect fill="url(#closeControlsLinearGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/>
<text class="legend" x="75" y="135">Close control points</text>
<text class="legend" x="75" y="150"><linearGradient></text>
</g>
<!--<g id="smallRadiusRadial" transform="translate(300, 100)">
<title>Small radius on radialGradient</title>
<desc>The radialGradient has a very small
(0.00000001) radius</desc>
<radialGradient id="smallRadiusRadialGradient" gradientUnits="objectBoundingBox" r="0.00000001">
<stop offset="0" stop-color="gold"/>
<stop offset="1" stop-color="crimson"/>
</radialGradient>
<rect fill="url(#smallRadiusRadialGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/>
<text class="legend" x="75" y="135">Small Radius</text>
<text class="legend" x="75" y="150"><radialGradient></text>
</g>-->
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org