Debian Codegraph @

samples/sizeOfSun.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 <!-- Size of the Sun -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29 <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" xml:space="preserve">
30 <title>Size of the Sun</title>
31 <rect id="background" x="0" y="0" width="100%" height="100%" style="fill:black"/>
32
33 <style type="text/css"><![CDATA[
34 .planet {
35 text-anchor:middle;
36 font-family: Helvetica;
37 font-size: 12;
38 }
39 ]]>
40 </style>
41
42 <defs>
43 <!-- ######################################################################### -->
44 <radialGradient id="mercuryGradient" fx=".3" fy=".3">
45 <stop style="stop-color:white" offset=".1"/>
46 <stop style="stop-color:#444" offset="1"/>
47 </radialGradient>
48 <g id="mercury" transform="scale(.1)" class="planet">
49 <circle transform="scale(10)" cx="0" cy="0" r="5" style="fill:url(#mercuryGradient)"/>
50 <text x="1" y="1" style="fill:black" ><tref xlink:href="#mercuryLegend"/></text>
51 <text id="mercuryLegend" x="0" y="0" style="fill:white">Mercury</text>
52 </g>
53
54 <!-- ######################################################################### -->
55 <radialGradient id="venusGradient" fx=".3" fy=".3">
56 <stop style="stop-color:cyan" offset=".1"/>
57 <stop style="stop-color:blue" offset="1"/>
58 </radialGradient>
59 <g id="venus" transform="scale(.2)" class="planet">
60 <circle transform="scale(5)" cx="0" cy="0" r="12" style="fill:url(#venusGradient)"/>
61 <text x="1" y="1" style="fill:black" ><tref xlink:href="#venusLegend"/></text>
62 <text id="venusLegend" x="0" y="0" style="fill:white">Venus</text>
63 </g>
64
65 <!-- ######################################################################### -->
66 <radialGradient id="earthGradient" fx=".3" fy=".3">
67 <stop style="stop-color:white" offset=".1"/>
68 <stop style="stop-color:blue" offset="1"/>
69 </radialGradient>
70 <g id="earth" transform="scale(.2)" class="planet">
71 <circle transform="scale(5)" cx="0" cy="0" r="13" style="fill:url(#earthGradient)"/>
72 <text x="1" y="1" style="fill:black" ><tref xlink:href="#earthLegend"/></text>
73 <text id="earthLegend" x="0" y="0" style="fill:white">Earth</text>
74 </g>
75
76 <!-- ######################################################################### -->
77 <radialGradient id="marsGradient" fx=".3" fy=".3">
78 <stop style="stop-color:orange" offset=".1"/>
79 <stop style="stop-color:black" offset="1"/>
80 </radialGradient>
81 <g id="mars" transform="scale(.2)" class="planet">
82 <circle transform="scale(5)" cx="0" cy="0" r="7" style="fill:url(#marsGradient)"/>
83 <text x="1" y="1" style="fill:black" ><tref xlink:href="#marsLegend"/></text>
84 <text id="marsLegend" x="0" y="0" style="fill:white">Mars</text>
85 </g>
86
87 <!-- ######################################################################### -->
88 <radialGradient id="jupiterGradient" fx=".3" fy=".3">
89 <stop style="stop-color:red" offset="0"/>
90 <stop style="stop-color:#aa0000" offset=".8"/>
91 <stop style="stop-color:#660000" offset="1"/>
92 </radialGradient>
93 <g id="jupiter" transform="scale(2)" class="planet">
94 <circle transform="scale(.5)" cx="0" cy="0" r="143" style="fill:url(#jupiterGradient)"/>
95 <text x="1" y="1" style="fill:black" ><tref xlink:href="#jupiterLegend"/></text>
96 <text id="jupiterLegend" x="0" y="0" style="fill:white">Jupiter</text>
97 </g>
98
99 <!-- ######################################################################### -->
100 <radialGradient id="saturnGradient" fx=".3" fy=".3">
101 <stop style="stop-color:yellow" offset=".1"/>
102 <stop style="stop-color:orange" offset="1"/>
103 </radialGradient>
104 <radialGradient id="ray" fx=".5" fy=".5">
105 <stop style="stop-color:yellow" offset=".3"/>
106 <stop style="stop-color:Sienna" offset="1"/>
107 </radialGradient>
108 <g id="saturn" transform="scale(2)" class="planet">
109 <g transform="scale(.5)">
110 <circle cx="0" cy="0" r="121" style="fill:url(#saturnGradient)"/>
111 <g transform="rotate(45)">
112 <path d="M-119 -21 L-120 -14 A180 20 180 1 0 120 -14 L119 -21 A240 25 180 1 1 -119 -21" style="fill:url(#ray)"/>
113 <path d="M-119 -24 L-120 -22 A250 28 180 1 0 120 -22 L119 -24 A300 30 180 1 1 -119 -24" style="fill:url(#ray)"/>
114 </g>
115 </g>
116 <text x="1" y="1" style="fill:black" ><tref xlink:href="#saturnLegend"/></text>
117 <text id="saturnLegend" x="0" y="0" style="fill:white">Saturn</text>
118 </g>
119
120 <!-- ######################################################################### -->
121 <radialGradient id="uranusGradient" fx=".3" fy=".3">
122 <stop style="stop-color:#00aa00" offset=".1"/>
123 <stop style="stop-color:green" offset="1"/>
124 </radialGradient>
125 <g id="uranus" class="planet">
126 <circle cx="0" cy="0" r="51" style="fill:url(#uranusGradient)"/>
127 <text x="1" y="1" style="fill:black" ><tref xlink:href="#uranusLegend"/></text>
128 <text id="uranusLegend" x="0" y="0" style="fill:white">Uranus</text>
129 </g>
130
131 <!-- ######################################################################### -->
132 <radialGradient id="neptuneGradient" fx=".3" fy=".3">
133 <stop style="stop-color:CornFlowerBlue" offset=".1"/>
134 <stop style="stop-color:MediumBlue" offset="1"/>
135 </radialGradient>
136 <g id="neptune" class="planet">
137 <circle cx="0" cy="0" r="50" style="fill:url(#neptuneGradient)"/>
138 <text x="1" y="1" style="fill:black" ><tref xlink:href="#neptuneLegend"/></text>
139 <text id="neptuneLegend" x="0" y="0" style="fill:white">Neptune</text>
140 </g>
141
142 <!-- ######################################################################### -->
143 <g id="pluto" transform="scale(.05)" class="planet">
144 <circle transform="scale(20)" cx="0" cy="0" r="2" style="fill:#eeaa88"/>
145 <text x="1" y="1" style="fill:black" ><tref xlink:href="#plutoLegend"/></text>
146 <text id="plutoLegend" x="0" y="0" style="fill:white">Pluto</text>
147 </g>
148
149 <!-- ######################################################################### -->
150 <!--
151 <filter id="blur" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox"
152 x="-10%" y="-25%" width="120%" height="150%" >
153 <feGaussianBlur stdDeviation="64 48" x="-10%" y="-25%" width="120%" height="150%" />
154 <feColorMatrix type="matrix" values="1.1 0 0 0 0 0 1.1 0 0 0 0 0 1.1 0 0 0 0 0 1.1 0" />
155 </filter>
156 -->
157 <radialGradient id="sunGradient" fx=".3" fy=".3">
158 <stop style="stop-color:white" offset=".1"/>
159 <stop style="stop-color:Gold" offset=".8"/>
160 <stop style="stop-color:orange" offset="1"/>
161 </radialGradient>
162 <clipPath id="clip">
163 <rect x="-143" y="-500" width="2780" height="1000"/>
164 </clipPath>
165 <g id="sun">
166 <!--
167 <circle cx="1247" cy="0" r="1460" style="filter:url(#blur); fill:#ffb200;"/>
168 <ellipse cx="1247" cy="0" rx="1386" ry="1390" style="fill:black;"/>
169 -->
170 <circle cx="1247" cy="0" r="1390" style="fill:url(#sunGradient); clip-path:url(#clip)"/>
171 </g>
172
173 <!-- ######################################################################### -->
174 <g id="line">
175 <use xlink:href="#jupiter" transform="translate(0 0)"/>
176 <use xlink:href="#saturn" transform="translate(264 0)"/>
177 <use xlink:href="#uranus" transform="translate(436 0)"/>
178 <use xlink:href="#neptune" transform="translate(537 0)"/>
179 <use xlink:href="#earth" transform="translate(600 0)"/>
180 <use xlink:href="#venus" transform="translate(625 0)"/>
181 <use xlink:href="#mars" transform="translate(644 0)"/>
182 <use xlink:href="#mercury" transform="translate(656 0)"/>
183 <use xlink:href="#pluto" transform="translate(663 0)"/>
184 </g>
185 </defs>
186
187 <!-- ######################################################################### -->
188 <!-- ######################################################################### -->
189 <g id="body">
190 <g transform="translate(50 280)scale(.14)">
191 <use xlink:href="#sun"/>
192 <g style="fill:none; stroke:black">
193 <line x1="665" y1="-300" x2="665" y2="0"/>
194 <line x1="1473" y1="-300" x2="1473" y2="0"/>
195 <line x1="2281" y1="-300" x2="2281" y2="0"/>
196 </g>
197 <use xlink:href="#line" transform="translate(0 0)"/>
198 <use xlink:href="#line" transform="translate(808 0)"/>
199 <use xlink:href="#line" transform="translate(1616 0)"/>
200 <g transform="translate(2402 0)">
201 <use xlink:href="#saturn" transform="translate(0 0)"/>
202 <use xlink:href="#earth" transform="translate(134 0)"/>
203 <use xlink:href="#earth" transform="translate(160 0)"/>
204 <use xlink:href="#earth" transform="translate(186 0)"/>
205 <use xlink:href="#earth" transform="translate(212 0)"/>
206 <use xlink:href="#mercury" transform="translate(230 0)"/>
207 </g>
208 </g>
209 <g id="legend" style="font-family:Helvetica">
210 <text x="50%" y="50" style="font-size:24; text-anchor:middle; fill:white">Size of the Sun</text>
211 <g style="font-size:12; text-anchor:middle; fill:white">
212 <text x="50%" y="100">You could line up all of the planets along the</text>
213 <text x="50%" y="114">Sun's 1,392,000 kilometer equator three times and still have room left</text>
214 <text x="50%" y="128">for 1 Saturn, 4 Earths, and a Mercury.</text>
215 </g>
216 <g style="font-size:12; text-anchor:end; fill:black">
217 <text x="144" y="250">One time...</text>
218 <text x="257" y="250">Two times...</text>
219 <text x="370" y="250">3 times...</text>
220 </g>
221 </g>
222 </g>
223 <!-- ============================================================= -->
224 <!-- Batik sample mark -->
225 <!-- ============================================================= -->
226 <use xlink:href="batikLogo.svg#Batik_Tag_Box" />
227 </svg>