Debian Codegraph @

test_non_regression/svg/lingrad01.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 lingrad01 - fill a rectangle using a
7 linear gradient paint server</desc>
8 <g>
9 <defs>
10 <linearGradient id="MyGradient">
11 <stop offset="5%" stop-color="#F60" />
12 <stop offset="95%" stop-color="#FF6" />
13 </linearGradient>
14 </defs>
15
16 <!-- Outline the drawing area in blue -->
17 <rect fill="none" stroke="blue"
18 x="1" y="1" width="798" height="398"/>
19
20 <!-- The rectangle is filled using a linear gradient paint server -->
21 <rect fill="url(#MyGradient)" stroke="black" stroke-width="5"
22 x="100" y="100" width="600" height="200"/>
23 </g>
24 </svg>
25