Debian Codegraph @

test_non_regression/svg/radgrad01.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="8cm" height="4cm" viewBox="0 0 800 400" version="1.1"
5 xmlns="http://www.w3.org/2000/svg">
6 <desc>Example radgrad01 - fill a rectangle by referencing a
7 radial gradient paint server</desc>
8 <g>
9 <defs>
10 <radialGradient id="MyGradient" gradientUnits="userSpaceOnUse"
11 cx="400" cy="200" r="300" fx="400" fy="200">
12 <stop offset="0%" stop-color="red" />
13 <stop offset="50%" stop-color="blue" />
14 <stop offset="100%" stop-color="red" />
15 </radialGradient>
16 </defs>
17
18 <!-- Outline the drawing area in blue -->
19 <rect fill="none" stroke="blue"
20 x="1" y="1" width="798" height="398"/>
21
22 <!-- The rectangle is filled using a radial gradient paint server -->
23 <rect fill="url(#MyGradient)" stroke="black" stroke-width="5"
24 x="100" y="100" width="600" height="200"/>
25 </g>
26 </svg>