Debian Codegraph @

testsuite/svg/renderer/linear-gradient3.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 x1='0' y1='0' x2='0.5' y2='0.5'>
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 fill="url(#MyGradient)"
19 stroke="black"
20 stroke-width="2"
21 x="50" y="50" width="200" height="100"/>
22 </svg>