| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ========================================================================= --> |
| <!-- Linear gradient on line. --> |
| <!-- --> |
| <!-- @author tkormann@ilog.fr --> |
| <!-- @version $Id$ --> |
| <!-- ========================================================================= --> |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| <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"> |
| |
| <title>Linear gradient on lines</title> |
| |
| <text x="50%" y="45" class="title">Linear gradient on lines</text> |
| |
| <g id="testContent"> |
| |
| <defs> |
| <linearGradient id="hGrad" x1="0" y1="0" x2="1" y2="0"> |
| <stop offset="0" style="stop-color:crimson" /> |
| <stop offset="1" style="stop-color:gold" /> |
| </linearGradient> |
| <linearGradient id="vGrad" x1="0" y1="0" x2="0" y2="1"> |
| <stop offset="0" style="stop-color:crimson" /> |
| <stop offset="1" style="stop-color:gold" /> |
| </linearGradient> |
| <linearGradient id="hvGrad" x1="0" y1="0" x2="1" y2="1"> |
| <stop offset="0" style="stop-color:crimson" /> |
| <stop offset="1" style="stop-color:gold" /> |
| </linearGradient> |
| </defs> |
| |
| <g style="fill:#eee;stroke:black"> |
| <rect x="75" y="100" width="300" height="20" /> |
| <rect x="55" y="120" width="20" height="300" /> |
| </g> |
| |
| <g style="fill:none;stroke:black"> |
| <rect x="75" y="120" width="300" height="300" /> |
| <line x1="175" y1="100" x2="175" y2="420" /> |
| <line x1="275" y1="100" x2="275" y2="420" /> |
| <line x1="55" y1="270" x2="375" y2="270" /> |
| </g> |
| <g style="text-anchor:middle; fill:black; stroke:none"> |
| <text x="225" y="115">hGradient</text> |
| <text x="125" y="115">vGradient</text> |
| <text x="325" y="115">hvGradient</text> |
| |
| <text transform="translate(70 200)rotate(-90)">horizontal <line></text> |
| <text transform="translate(70 350)rotate(-90)">vertical <Line></text> |
| </g> |
| |
| <g style="stroke-width:6"> |
| <line x1="85" y1="195" x2="165" y2="195" style="stroke:url(#hGrad)" /> |
| <line x1="185" y1="195" x2="265" y2="195" style="stroke:url(#vGrad)"/> |
| <line x1="285" y1="195" x2="365" y2="195" style="stroke:url(#hvGrad)"/> |
| |
| <line x1="120" y1="285" x2="120" y2="405" style="stroke:url(#hGrad)"/> |
| <line x1="220" y1="285" x2="220" y2="405" style="stroke:url(#vGrad)"/> |
| <line x1="320" y1="285" x2="320" y2="405" style="stroke:url(#hvGrad)"/> |
| </g> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |