| 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 |
<!-- Radial gradient on line. --> |
| 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" |
| 31 |
id="body" width="450" height="500" viewBox="0 0 450 500"> |
| 32 |
|
| 33 |
<title>Radial gradient on lines</title> |
| 34 |
|
| 35 |
<text x="50%" y="45" class="title">Radial gradient on lines</text> |
| 36 |
|
| 37 |
<g id="testContent"> |
| 38 |
|
| 39 |
<defs> |
| 40 |
<radialGradient id="grad" cx=".5" cy=".5" r="1" gradientUnits="userSpaceOnUse"> |
| 41 |
<stop offset="0" style="stop-color:crimson" /> |
| 42 |
<stop offset="1" style="stop-color:gold" /> |
| 43 |
</radialGradient> |
| 44 |
</defs> |
| 45 |
|
| 46 |
<g style="fill:#eee;stroke:black"> |
| 47 |
<rect x="75" y="100" width="300" height="20" /> |
| 48 |
<rect x="55" y="120" width="20" height="300" /> |
| 49 |
</g> |
| 50 |
|
| 51 |
<g style="fill:none;stroke:black"> |
| 52 |
<rect x="75" y="120" width="300" height="300" /> |
| 53 |
<line x1="55" y1="270" x2="375" y2="270" /> |
| 54 |
</g> |
| 55 |
<g style="text-anchor:middle; fill:black; stroke:none"> |
| 56 |
<text x="225" y="115">Gradient</text> |
| 57 |
<text transform="translate(70 200)rotate(-90)">horizontal <line></text> |
| 58 |
<text transform="translate(70 350)rotate(-90)">vertical <Line></text> |
| 59 |
</g> |
| 60 |
<g style="stroke-width:6"> |
| 61 |
<line x2="1" transform="translate(185, 195) scale(80, 1)" stroke="url(#grad)" /> |
| 62 |
<line y2="1" transform="translate(220, 285) scale(1, 120)" stroke="url(#grad)"/> |
| 63 |
</g> |
| 64 |
|
| 65 |
</g> |
| 66 |
|
| 67 |
<!-- ============================================================= --> |
| 68 |
<!-- Batik sample mark --> |
| 69 |
<!-- ============================================================= --> |
| 70 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 71 |
|
| 72 |
</svg> |