Debian Codegraph @

samples/tests/spec/rendering/opacity.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 <!-- Opacity test. Apply 'stroke-opacity' 'fill-opacity' and 'opacity' -->
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" id="body" width="450" height="500" viewBox="0 0 450 500">
33 <title>Opacity: stroke-opacity, fill-opacity, opacity </title>
34 <!-- ============================================================= -->
35 <!-- Test content -->
36 <!-- ============================================================= -->
37
38 <g id="testContent">
39
40 <text x="225" y="50" class="title">
41 Opacity : stroke-opacity, fill-opacity and opacity
42 </text>
43 <g class="legend">
44 <defs>
45 <circle id="elem" cx="0" cy="0" r="35"
46 style="fill: yellow; stroke: black; stroke-width: 8;"/>
47 <rect id="bg" x="-45" y="-45" width="90" height="90"
48 style="fill:orange"/>
49 </defs>
50 <g transform="translate(75 130)">
51 <use xlink:href="#bg"/>
52 <use xlink:href="#elem"
53 style="stroke-opacity:1; fill-opacity:1"/>
54 <text x="0" y="60">opacity:1</text>
55 <text x="0" y="70">stroke-opacity:1</text>
56 <text x="0" y="80">fill-opacity:1</text>
57 </g>
58 <g transform="translate(175 130)">
59 <use xlink:href="#bg"/>
60 <use xlink:href="#elem"
61 style="stroke-opacity:1; fill-opacity:.5"/>
62 <text x="0" y="60">opacity:1</text>
63 <text x="0" y="70">stroke-opacity:1</text>
64 <text x="0" y="80">fill-opacity:0.5</text>
65 </g>
66 <g transform="translate(275 130)">
67 <use xlink:href="#bg"/>
68 <use xlink:href="#elem"
69 style="stroke-opacity:.5; fill-opacity:1"/>
70 <text x="0" y="60">opacity:1</text>
71 <text x="0" y="70">stroke-opacity:0.5</text>
72 <text x="0" y="80">fill-opacity:1</text>
73 </g>
74 <g transform="translate(375 130)">
75 <use xlink:href="#bg"/>
76 <use xlink:href="#elem"
77 style="stroke-opacity:.5; fill-opacity:.5"/>
78 <text x="0" y="60">opacity:1</text>
79 <text x="0" y="70">stroke-opacity:0.5</text>
80 <text x="0" y="80">fill-opacity:0.5</text>
81 </g>
82
83 <g transform="translate(75 330)" >
84 <use xlink:href="#bg"/>
85 <use xlink:href="#elem"
86 style="stroke-opacity:1; fill-opacity:1; opacity:.5;"/>
87 <text x="0" y="60">opacity:0.5</text>
88 <text x="0" y="70">stroke-opacity:1</text>
89 <text x="0" y="80">fill-opacity:1</text>
90 </g>
91 <g transform="translate(175 330)">
92 <use xlink:href="#bg"/>
93 <use xlink:href="#elem"
94 style="stroke-opacity:1; fill-opacity:.5; opacity:.5;"/>
95 <text x="0" y="60">opacity:0.5</text>
96 <text x="0" y="70">stroke-opacity:1</text>
97 <text x="0" y="80">fill-opacity:0.5</text>
98 </g>
99 <g transform="translate(275 330)">
100 <use xlink:href="#bg"/>
101 <use xlink:href="#elem"
102 style="stroke-opacity:.5; fill-opacity:1; opacity:.5;"/>
103 <text x="0" y="60">opacity:0.5</text>
104 <text x="0" y="70">stroke-opacity:0.5</text>
105 <text x="0" y="80">fill-opacity:1</text>
106 </g>
107 <g transform="translate(375 330)">
108 <use xlink:href="#bg"/>
109 <use xlink:href="#elem"
110 style="stroke-opacity:.5; fill-opacity:.5; opacity:.5;"/>
111 <text x="0" y="60">opacity:0.5</text>
112 <text x="0" y="70">stroke-opacity:0.5</text>
113 <text x="0" y="80">fill-opacity:0.5</text>
114 </g>
115
116 </g>
117
118 </g>
119
120 <!-- ============================================================= -->
121 <!-- Batik sample mark -->
122 <!-- ============================================================= -->
123 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
124
125 </svg>