Debian Codegraph @

testsuite/svg/renderer/linear-gradient7.svg

raw symbols SCIP
1 <?xml version="1.0" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg"
3 width='300' height='200'
4 viewBox="0 0 300 200" >
5
6 <defs>
7 <linearGradient id="MyGradient" spreadMethod='pad'
8 gradientUnits='userSpaceOnUse'
9 x1='50' y1='50' x2='250' y2='150'>
10 <stop offset="0" stop-color="red" />
11 <stop offset="0.5" stop-color="red" />
12 <stop offset="0.5" stop-color="yellow" />
13 <stop offset="1" stop-color="yellow" />
14 </linearGradient>
15 </defs>
16
17 <!-- The rectangle is filled using a linear-gradient paint server -->
18 <rect stroke="url(#MyGradient)"
19 fill='none'
20 stroke-width="10"
21 x="50" y="50" width="200" height="100"/>
22 </svg>