Debian Codegraph @

rsvg/tests/fixtures/reftests/svg2/gradient-01-b.svg

raw symbols SCIP
1 <svg id="svg-root"
2 width="100%" height="100%" viewBox="0 0 1000 5000"
3 xmlns:svg="http://www.w3.org/2000/svg"
4 xmlns:xlink="http://www.w3.org/1999/xlink"
5 xmlns:html="http://www.w3.org/1999/xhtml">
6 <defs id="defs">
7 <!-- Only cx/cy/r for a plain SVG1.1-like gradient. -->
8 <radialGradient
9 id="plain_svg11_gradient"
10 gradientUnits="userSpaceOnUse"
11
12 cx="500" cy="500" r="200">
13 <stop style="stop-color:#aa88ff" offset="0%"/>
14 <stop style="stop-color:#ffddcc" offset="50%"/>
15 <stop style="stop-color:#bbffee" offset="100%"/>
16 </radialGradient>
17
18
19 <!-- cx/cy/r/fx/fy with the focus point inside the circle, for a "full" SVG1.1 gradient. -->
20 <radialGradient
21 id="full_svg11_gradient"
22 gradientUnits="userSpaceOnUse"
23
24 cx="500" cy="1500" r="200"
25 fx="600" fy="1600">
26 <stop style="stop-color:#aa88ff" offset="0%"/>
27 <stop style="stop-color:#ffddcc" offset="50%"/>
28 <stop style="stop-color:#bbffee" offset="100%"/>
29 </radialGradient>
30
31
32 <!-- cx/cy/r/fx/fy with the focus point outside the circle. -->
33 <radialGradient
34 id="full_svg11_outside_gradient"
35 gradientUnits="userSpaceOnUse"
36
37 cx="500" cy="2500" r="200"
38 fx="800" fy="2500">
39 <stop style="stop-color:#aa88ff" offset="0%"/>
40 <stop style="stop-color:#ffddcc" offset="50%"/>
41 <stop style="stop-color:#bbffee" offset="100%"/>
42 </radialGradient>
43
44
45 <!-- cx/cy/r/fx/fy/fr inside the circle. -->
46 <radialGradient
47 id="svg2_inside_gradient"
48 gradientUnits="userSpaceOnUse"
49
50 cx="500" cy="3500" r="200"
51 fx="600" fy="3600" fr="50">
52 <stop style="stop-color:#aa88ff" offset="0%"/>
53 <stop style="stop-color:#ffddcc" offset="50%"/>
54 <stop style="stop-color:#bbffee" offset="100%"/>
55 </radialGradient>
56
57
58 <!-- cx/cy/r/fx/fy/fr outside the circle. -->
59 <radialGradient
60 id="svg2_outside_gradient"
61 gradientUnits="userSpaceOnUse"
62
63 cx="500" cy="4500" r="200"
64 fx="800" fy="4500" fr="50">
65 <stop style="stop-color:#aa88ff" offset="0%"/>
66 <stop style="stop-color:#ffddcc" offset="50%"/>
67 <stop style="stop-color:#bbffee" offset="100%"/>
68 </radialGradient>
69 </defs>
70 <g id="layer1">
71 <rect
72 id="rec1" style="fill:url(#plain_svg11_gradient)"
73 width="900" height="800"
74 x="50" y="100" />
75
76 <rect
77 id="rec2" style="fill:url(#full_svg11_gradient)"
78 width="900" height="800"
79 x="50" y="1100" />
80
81 <rect
82 id="rec3" style="fill:url(#full_svg11_outside_gradient)"
83 width="900" height="800"
84 x="50" y="2100" />
85
86 <rect
87 id="rec4" style="fill:url(#svg2_inside_gradient)"
88 width="900" height="800"
89 x="50" y="3100" />
90
91 <rect
92 id="rec5" style="fill:url(#svg2_outside_gradient)"
93 width="900" height="800"
94 x="50" y="4100" />
95
96
97 <circle
98 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
99 id="circle1"
100 cx="500" cy="500" r="200" />
101 <circle
102 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
103 id="circle2"
104 cx="500" cy="1500" r="200" />
105 <circle
106 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
107 id="circle2_2"
108 cx="600" cy="1600" r="1" />
109 <circle
110 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
111 id="circle3"
112 cx="500" cy="2500" r="200" />
113 <circle
114 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
115 id="circle3_2"
116 cx="800" cy="2500" r="1" />
117 <circle
118 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
119 id="circle4"
120 cx="500" cy="3500" r="200" />
121 <circle
122 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
123 id="circle4_2"
124 cx="600" cy="3600" r="50" />
125 <circle
126 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
127 id="circle5"
128 cx="500" cy="4500" r="200" />
129 <circle
130 style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
131 id="circle5_2"
132 cx="800" cy="4500" r="50" />
133 </g>
134 </svg>
135
136
137