Debian Codegraph @

samples/tests/spec/paints/linearGradientOrientation.svg

raw
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 <!-- Test external paint servers -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
33 <title>Linear Gradient Orientation</title>
34
35 <!-- ============================================================= -->
36 <!-- Test content -->
37 <!-- ============================================================= -->
38 <g id="testContent">
39 <text x="225" y="50" class="title">Linear Gradient Orientation</text>
40 <g transform="translate(0 -30)">
41 <!-- ############################### -->
42 <g id="board" style="fill:none; stroke:black;">
43
44 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
45 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
46 <rect x="75" y="120" width="150" height="50" />
47 <rect x="225" y="120" width="150" height="50" />
48 <g transform="translate(0 80)">
49 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
50 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
51 <rect x="75" y="120" width="150" height="50" />
52 <rect x="225" y="120" width="150" height="50" />
53 </g>
54 <g transform="translate(0 180)">
55 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
56 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
57 <rect x="75" y="120" width="150" height="50" />
58 <rect x="225" y="120" width="150" height="50" />
59 </g>
60 <g transform="translate(0 260)">
61 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
62 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
63 <rect x="75" y="120" width="150" height="50" />
64 <rect x="225" y="120" width="150" height="50" />
65 </g>
66 <g transform="translate(75 340)">
67 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
68 <rect x="75" y="120" width="150" height="50" />
69 </g>
70 <g style="stroke:none; fill:black; text-anchor:middle; font-size:12">
71 <text x="150" y="114">x1 &lt; x2 / y1 = y2</text>
72 <text x="300" y="114">x1 > x2 / y1 = y2</text>
73
74 <g transform="translate(0 80)">
75 <text x="150" y="114">x1 = x2 / y1 &lt; y2</text>
76 <text x="300" y="114">x1 = x2 / y1 > y2</text>
77 </g>
78 <g transform="translate(0 180)">
79 <text x="150" y="114">x1 &lt; x2 / y1 &lt; y2</text>
80 <text x="300" y="114">x1 &lt; x2 / y1 > y2</text>
81 </g>
82 <g transform="translate(0 260)">
83 <text x="150" y="114">x1 > x2 / y1 &lt; y2</text>
84 <text x="300" y="114">x1 > x2 / y1 > y2</text>
85 </g>
86 <g transform="translate(75 340)">
87 <text x="150" y="114">x1 = x2 = y1 = y2</text>
88 </g>
89 </g>
90 </g>
91
92
93 <!-- ############################### -->
94 <defs>
95 <linearGradient id="genericGrad">
96 <stop style="stop-color:crimson" offset="0" />
97 <stop style="stop-color:orange" offset=".5" />
98 <stop style="stop-color:gold" offset="1" />
99 </linearGradient>
100 <!-- ### first board ### -->
101 <linearGradient id="grad1" x1="0" y1="1" x2="1" y2="1"
102 xlink:href="#genericGrad" />
103 <linearGradient id="grad2" x1="1" y1="1" x2="0" y2="1"
104 xlink:href="#genericGrad" />
105
106 <!-- ### second board ### -->
107 <linearGradient id="grad3" x1="0" y1="0" x2="0" y2="1"
108 xlink:href="#genericGrad" />
109 <linearGradient id="grad4" x1="0" y1="1" x2="0" y2="0"
110 xlink:href="#genericGrad" />
111
112 <!-- ### third board ### -->
113 <linearGradient id="grad5" x1="0" y1="0" x2="1" y2="1"
114 xlink:href="#genericGrad" />
115 <linearGradient id="grad6" x1="0" y1="1" x2="1" y2="0"
116 xlink:href="#genericGrad" />
117
118 <!-- ### fourth board ### -->
119 <linearGradient id="grad7" x1="1" y1="0" x2="0" y2="1"
120 xlink:href="#genericGrad" />
121 <linearGradient id="grad8" x1="1" y1="1" x2="0" y2="0"
122 xlink:href="#genericGrad" />
123
124 <!-- ### fifth board ### -->
125 <linearGradient id="grad9" x1=".5" y1=".5" x2=".5" y2=".5"
126 xlink:href="#genericGrad" />
127
128 </defs>
129
130
131 <rect x="85" y="130" width="130" height="30" fill="url(#grad1)"/>
132 <rect x="235" y="130" width="130" height="30" fill="url(#grad2)"/>
133
134 <g transform="translate(0 80)">
135 <rect x="85" y="130" width="130" height="30" fill="url(#grad3)"/>
136 <rect x="235" y="130" width="130" height="30" fill="url(#grad4)"/>
137 </g>
138
139 <g transform="translate(0 180)">
140 <rect x="85" y="130" width="130" height="30" fill="url(#grad5)"/>
141 <rect x="235" y="130" width="130" height="30" fill="url(#grad6)"/>
142 </g>
143
144 <g transform="translate(0 260)">
145 <rect x="85" y="130" width="130" height="30" fill="url(#grad7)"/>
146 <rect x="235" y="130" width="130" height="30" fill="url(#grad8)"/>
147 </g>
148
149 <g transform="translate(75 340)">
150 <rect x="85" y="130" width="130" height="30" fill="url(#grad9)"/>
151 </g>
152
153 </g>
154 </g>
155
156 <!-- ============================================================= -->
157 <!-- Batik sample mark -->
158 <!-- ============================================================= -->
159 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
160
161 </svg>