| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Limit test on gradients. --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500"> |
| 31 |
<title>Limit test on Gradients</title> |
| 32 |
|
| 33 |
<text x="50%" y="45" class="title">Gradient Limit Test</text> |
| 34 |
|
| 35 |
<g id="testContent"> |
| 36 |
<g id="closeOffsetsLinear"> |
| 37 |
<title>Close Offsets on linearGradient</title> |
| 38 |
<desc>The last two offsets of this linearGradient are |
| 39 |
very close (0.000001) to one-another</desc> |
| 40 |
<linearGradient id="closeOffsetsLinearGradient" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1"> |
| 41 |
<stop offset="0" style="stop-color:crimson"/> |
| 42 |
<stop offset="0.999999" style="stop-color:gold"/> |
| 43 |
<stop offset="1" style="stop-color:crimson"/> |
| 44 |
</linearGradient> |
| 45 |
<rect fill="url(#closeOffsetsLinearGradient)" x="35" y="80" width="80" height="40" /> |
| 46 |
<text class="legend" x="75" y="135">Two close offsets</text> |
| 47 |
<text class="legend" x="75" y="150"><linearGradient></text> |
| 48 |
</g> |
| 49 |
|
| 50 |
<g id="closeOffsetsLinear2" transform="translate(150, 0)"> |
| 51 |
<title>Close Offsets on linearGradient</title> |
| 52 |
<desc>The last two offsets of this linearGradient are |
| 53 |
very close (0.00000001) to one-another, with a |
| 54 |
difference below the single precision floating |
| 55 |
point</desc> |
| 56 |
<linearGradient id="closeOffsetsLinearGradient2" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1"> |
| 57 |
<stop offset="0" style="stop-color:crimson"/> |
| 58 |
<stop offset="0.99999999" style="stop-color:gold"/> |
| 59 |
<stop offset="1" style="stop-color:crimson"/> |
| 60 |
</linearGradient> |
| 61 |
<rect fill="url(#closeOffsetsLinearGradient2)" x="35" y="80" width="80" height="40" /> |
| 62 |
<text class="legend" x="75" y="135">Two very close offsets</text> |
| 63 |
<text class="legend" x="75" y="150"><linearGradient></text> |
| 64 |
</g> |
| 65 |
|
| 66 |
<g id="closeOffsetsRadial" transform="translate(0, 100)"> |
| 67 |
<title>Close Offsets on radialGradient</title> |
| 68 |
<desc>The last two offsets of this radialGradient are |
| 69 |
very close (0.000001) to one-another</desc> |
| 70 |
<radialGradient id="closeOffsetsRadialGradient" gradientUnits="objectBoundingBox" r=".1"> |
| 71 |
<stop offset="0" style="stop-color:crimson"/> |
| 72 |
<stop offset="0.999999" style="stop-color:gold"/> |
| 73 |
<stop offset="1" style="stop-color:crimson"/> |
| 74 |
</radialGradient> |
| 75 |
<rect fill="url(#closeOffsetsRadialGradient)" x="35" y="80" width="80" height="40" /> |
| 76 |
<text class="legend" x="75" y="135">Two close offsets</text> |
| 77 |
<text class="legend" x="75" y="150"><radialGradient></text> |
| 78 |
</g> |
| 79 |
|
| 80 |
<g id="closeOffsetsRadial2" transform="translate(150, 100)"> |
| 81 |
<title>Close Offsets on radialGradient</title> |
| 82 |
<desc>The last two offsets of this radialGradient are |
| 83 |
very close (0.00000001) to one-another</desc> |
| 84 |
<radialGradient id="closeOffsetsRadialGradient2" gradientUnits="objectBoundingBox" r=".1"> |
| 85 |
<stop offset="0" style="stop-color:crimson"/> |
| 86 |
<stop offset="0.99999999" style="stop-color:gold"/> |
| 87 |
<stop offset="1" style="stop-color:crimson"/> |
| 88 |
</radialGradient> |
| 89 |
<rect fill="url(#closeOffsetsRadialGradient2)" x="35" y="80" width="80" height="40" /> |
| 90 |
<text class="legend" x="75" y="135">Two very close offsets</text> |
| 91 |
<text class="legend" x="75" y="150"><radialGradient></text> |
| 92 |
</g> |
| 93 |
|
| 94 |
<g id="closeControlsLinear" transform="translate(300, 0)"> |
| 95 |
<title>Close control points on linearGradient</title> |
| 96 |
<desc>The y coordinates on the gradient are close |
| 97 |
(0.00000001) to one-another</desc> |
| 98 |
<linearGradient id="closeControlsLinearGradient" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="0.00000001"> |
| 99 |
<stop offset="0" stop-color="gold"/> |
| 100 |
<stop offset="1" stop-color="crimson"/> |
| 101 |
</linearGradient> |
| 102 |
<rect fill="url(#closeControlsLinearGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/> |
| 103 |
<text class="legend" x="75" y="135">Close control points</text> |
| 104 |
<text class="legend" x="75" y="150"><linearGradient></text> |
| 105 |
</g> |
| 106 |
|
| 107 |
<g id="smallRadiusRadial" transform="translate(300, 100)"> |
| 108 |
<title>Small radius on radialGradient</title> |
| 109 |
<desc>The radialGradient has a very small |
| 110 |
(0.00000001) radius</desc> |
| 111 |
<radialGradient id="smallRadiusRadialGradient" gradientUnits="objectBoundingBox" r="0.00000001"> |
| 112 |
<stop offset="0" stop-color="gold"/> |
| 113 |
<stop offset="1" stop-color="crimson"/> |
| 114 |
</radialGradient> |
| 115 |
<rect fill="url(#smallRadiusRadialGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/> |
| 116 |
<text class="legend" x="75" y="135">Small Radius</text> |
| 117 |
<text class="legend" x="75" y="150"><radialGradient></text> |
| 118 |
</g> |
| 119 |
</g> |
| 120 |
|
| 121 |
<!-- ============================================================= --> |
| 122 |
<!-- Batik sample mark --> |
| 123 |
<!-- ============================================================= --> |
| 124 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 125 |
|
| 126 |
</svg> |