Debian Codegraph @

testsuite/svg/renderer/linear-gradient5.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='repeat'
8 gradientUnits='objectBoundingBox'
9 gradientTransform='rotate(45)'
10 x1='0' y1='0' x2='0.5' y2='0.5'>
11 <stop offset="0" stop-color="red" />
12 <stop offset="0.5" stop-color="red" />
13 <stop offset="0.5" stop-color="yellow" />
14 <stop offset="1" stop-color="yellow" />
15 </linearGradient>
16 </defs>
17
18 <!-- The rectangle is filled using a linear-gradient paint server -->
19 <rect fill="url(#MyGradient)"
20 stroke="black"
21 stroke-width="2"
22 x="50" y="50" width="200" height="100"/>
23 </svg>