Debian Codegraph @

samples/extensions/colorSwitch.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 <!-- regularPoly extension tag test -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29
30 <?xml-stylesheet type="text/css" href="extension.css" ?>
31
32 <svg id="body" width="450" height="500" xml:space="preserve"
33 viewBox="0 0 450 500"
34 xmlns="http://www.w3.org/2000/svg" version="1.2"
35 xmlns:xlink="http://www.w3.org/1999/xlink"
36 xmlns:batik="http://xml.apache.org/batik/ext">
37
38 <title>Star Extension Tag</title>
39
40 <!-- ============================================================= -->
41 <!-- Test content -->
42 <!-- ============================================================= -->
43 <g id="testContent" class="legend" style="text-anchor:middle">
44 <text x="225" y="40" class="title">
45 Color Switch Paint Server
46 </text>
47
48 <path d="M25,135 c50,-50 50,50 100,0 c50,-50 50,50 100,0
49 c50,-50 50,50 100,0c50,-50 50,50 100,0"
50 fill="none" stroke="black" stroke-width="10"/>
51
52 <path d="M25,275 c50,-50 50,50 100,0 c50,-50 50,50 100,0
53 c50,-50 50,50 100,0c50,-50 50,50 100,0"
54 fill="none" stroke="black" stroke-width="10"/>
55
56 <path d="M25,415 c50,-50 50,50 100,0 c50,-50 50,50 100,0
57 c50,-50 50,50 100,0c50,-50 50,50 100,0"
58 fill="none" stroke="black" stroke-width="10"/>
59
60 <switch>
61 <g requiredExtensions="http://xml.apache.org/batik/ext/colorSwitch/1.0"
62 fill="#0D0" stroke="#88F" stroke-width="2">
63
64 <batik:colorSwitch id="TransPurple">
65 <solidColor solid-color="red"
66 requiredExtensions="NonExistantExtension"/>
67 <solidColor solid-color="#FF00FF" solid-opacity=".5"/>
68 <linearGradient>
69 <stop offset="0" stop-color="#FF0000" stop-opacity="0.5"/>
70 </linearGradient>
71 </batik:colorSwitch>
72
73 <batik:colorSwitch id="SolidPurple">
74 <solidColor solid-color="#FF00FF"/>
75 <linearGradient>
76 <stop offset="0" stop-color="#FFFF00" />
77 </linearGradient>
78 </batik:colorSwitch>
79
80 <batik:colorSwitch id="orange">
81 <solidColor solid-color="orange" solid-opacity="1"
82 requiredExtensions="NonExistantExtension" />
83 <linearGradient y2="100%">
84 <stop offset=".1" stop-color="crimson" />
85 <stop offset=".5" stop-color="gold" stop-opacity="0.5"/>
86 <stop offset=".9" stop-color="crimson" />
87 </linearGradient>
88 </batik:colorSwitch>
89
90
91 <circle fill="url(#SolidPurple)" cx="85" cy="135" r="50"/>
92 <circle fill="url(#TransPurple)" cx="225" cy="135" r="50"/>
93 <circle fill="url(#orange)" cx="365" cy="135" r="50"/>
94
95 <g stroke-width="5" fill="none">
96 <circle stroke="url(#SolidPurple)" cx="85" cy="275" r="50"/>
97 <circle stroke="url(#TransPurple)" cx="225" cy="275" r="50"/>
98 <circle stroke="url(#orange)" cx="365" cy="275" r="50"/>
99 </g>
100
101 <circle fill="url(#SolidPurple)" fill-opacity="0.5"
102 cx="85" cy="415" r="50"/>
103 <circle fill="url(#TransPurple)" fill-opacity="0.5"
104 cx="225" cy="415" r="50"/>
105 <circle fill="url(#orange)" fill-opacity="0.5"
106 cx="365" cy="415" r="50"/>
107 </g>
108
109 <g fill="red">
110 <circle cx="85" cy="135" r="50"/>
111 <circle cx="225" cy="135" r="50"/>
112 <circle cx="365" cy="135" r="50"/>
113
114 <circle cx="85" cy="275" r="50"/>
115 <circle cx="225" cy="275" r="50"/>
116 <circle cx="365" cy="275" r="50"/>
117
118 <circle cx="85" cy="415" r="50"/>
119 <circle cx="225" cy="415" r="50"/>
120 <circle cx="365" cy="415" r="50"/>
121 </g>
122 </switch>
123 </g>
124
125 <!-- ============================================================= -->
126 <!-- Batik sample mark -->
127 <!-- ============================================================= -->
128 <use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
129 </svg>