Debian Codegraph @

samples/tests/spec/paints/radialGradientOrientation.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 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 -->
21
22 <!-- ========================================================================= -->
23 <!-- Test external paint servers -->
24 <!-- -->
25 <!-- @author [email protected] -->
26 <!-- @version $Id$ -->
27 <!-- ========================================================================= -->
28
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31 <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">
32 <title>Radial Gradient Orientation</title>
33
34 <!-- ============================================================= -->
35 <!-- Test content -->
36 <!-- ============================================================= -->
37 <g id="testContent">
38 <text x="225" y="50" class="title">Radial Gradient Orientation</text>
39 <g transform="translate(0 -30)">
40 <!-- ############################### -->
41 <g id="board" style="fill:none; stroke:black;">
42
43 <rect x="75" y="100" width="100" height="20" style="fill:#eee"/>
44 <rect x="175" y="100" width="100" height="20" style="fill:#eee"/>
45 <rect x="275" y="100" width="100" height="20" style="fill:#eee"/>
46 <rect x="75" y="120" width="100" height="50" />
47 <rect x="175" y="120" width="100" height="50" />
48 <rect x="275" y="120" width="100" height="50" />
49 <g transform="translate(0 80)">
50 <rect x="75" y="100" width="100" height="20" style="fill:#eee"/>
51 <rect x="175" y="100" width="100" height="20" style="fill:#eee"/>
52 <rect x="275" y="100" width="100" height="20" style="fill:#eee"/>
53 <rect x="75" y="120" width="100" height="50" />
54 <rect x="175" y="120" width="100" height="50" />
55 <rect x="275" y="120" width="100" height="50" />
56 </g>
57 <g transform="translate(0 160)">
58 <rect x="75" y="100" width="100" height="20" style="fill:#eee"/>
59 <rect x="175" y="100" width="100" height="20" style="fill:#eee"/>
60 <rect x="275" y="100" width="100" height="20" style="fill:#eee"/>
61 <rect x="75" y="120" width="100" height="50" />
62 <rect x="175" y="120" width="100" height="50" />
63 <rect x="275" y="120" width="100" height="50" />
64 </g>
65 <g transform="translate(0 240)">
66 <rect x="175" y="100" width="100" height="20" style="fill:#eee"/>
67 <rect x="175" y="120" width="100" height="50" />
68 </g>
69 <g style="stroke:none; fill:black; text-anchor:middle; font-size:12">
70 <text x="125" y="114">cx = cy / fx &lt; fy</text>
71 <text x="225" y="114">cx = cy / fx > fy</text>
72 <text x="325" y="114">cx = cy / fx = fy</text>
73 <g transform="translate(0 80)">
74 <text x="125" y="114">cx &lt; cy / fx &lt; fy</text>
75 <text x="225" y="114">cx &lt; cy / fx > fy</text>
76 <text x="325" y="114">cx &lt; cy / fx = fy</text>
77 </g>
78 <g transform="translate(0 160)">
79 <text x="125" y="114">cx > cy / fx &lt; fy</text>
80 <text x="225" y="114">cx > cy / fx > fy</text>
81 <text x="325" y="114">cx > cy / fx = fy</text>
82 </g>
83 <g transform="translate(0 240)">
84 <text x="225" y="114">r = 0</text>
85 </g>
86 </g>
87 </g>
88
89
90 <!-- ############################### -->
91 <defs>
92 <radialGradient id="genericGrad">
93 <stop style="stop-color:crimson" offset="0" />
94 <stop style="stop-color:orange" offset=".5" />
95 <stop style="stop-color:gold" offset="1" />
96 </radialGradient>
97
98 <radialGradient id="grad1" cx=".5" cy=".5" fx="0" fy="1" r=".5"
99 xlink:href="#genericGrad" />
100 <radialGradient id="grad2" cx=".5" cy=".5" fx="1" fy="0" r=".5"
101 xlink:href="#genericGrad" />
102 <radialGradient id="grad3" cx=".5" cy=".5" fx=".5" fy=".5" r=".5"
103 xlink:href="#genericGrad" />
104
105 <radialGradient id="grad4" cx="0" cy="1" fx="0" fy="1" r=".5"
106 xlink:href="#genericGrad" />
107 <radialGradient id="grad5" cx="0" cy="1" fx="1" fy="0" r=".5"
108 xlink:href="#genericGrad" />
109 <radialGradient id="grad6" cx="0" cy="1" fx=".5" fy=".5" r=".5"
110 xlink:href="#genericGrad" />
111
112 <radialGradient id="grad7" cx="1" cy="0" fx="0" fy="1" r=".5"
113 xlink:href="#genericGrad" />
114 <radialGradient id="grad8" cx="1" cy="0" fx="1" fy="0" r=".5"
115 xlink:href="#genericGrad" />
116 <radialGradient id="grad9" cx="1" cy="0" fx=".5" fy=".5" r=".5"
117 xlink:href="#genericGrad" />
118
119 <radialGradient id="grad10" r="0" xlink:href="#genericGrad" />
120 </defs>
121
122 <circle cx="125" cy="145" r="20" style="fill:url(#grad1)"/>
123 <circle cx="225" cy="145" r="20" style="fill:url(#grad2)"/>
124 <circle cx="325" cy="145" r="20" style="fill:url(#grad3)"/>
125
126 <g transform="translate(0 80)">
127 <circle cx="125" cy="145" r="20" style="fill:url(#grad4)"/>
128 <circle cx="225" cy="145" r="20" style="fill:url(#grad5)"/>
129 <circle cx="325" cy="145" r="20" style="fill:url(#grad6)"/>
130 </g>
131
132 <g transform="translate(0 160)">
133 <circle cx="125" cy="145" r="20" style="fill:url(#grad7)"/>
134 <circle cx="225" cy="145" r="20" style="fill:url(#grad8)"/>
135 <circle cx="325" cy="145" r="20" style="fill:url(#grad9)"/>
136 </g>
137
138 <g transform="translate(0 240)">
139 <circle cx="225" cy="145" r="20" style="fill:url(#grad10)"/>
140 </g>
141
142 </g>
143 </g>
144
145 <!-- ============================================================= -->
146 <!-- Batik sample mark -->
147 <!-- ============================================================= -->
148 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
149
150 </svg>