0
|
1 |
<?xml version="1.0"?>
|
|
2 |
<svg width="7cm" height="2cm" viewBox="0 0 700 200"
|
|
3 |
xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny">
|
|
4 |
<desc>Gradients apply to leaf nodes
|
|
5 |
</desc>
|
|
6 |
<g>
|
|
7 |
<defs>
|
|
8 |
<linearGradient xml:id="MyGradient" gradientUnits="objectBoundingBox">
|
|
9 |
<stop offset="0" stop-color="#F60" />
|
|
10 |
<stop offset="1" stop-color="#FF6" />
|
|
11 |
</linearGradient>
|
|
12 |
</defs>
|
|
13 |
<rect x="1" y="1" width="698" height="198"
|
|
14 |
fill="none" stroke="blue" stroke-width="2" />
|
|
15 |
<g fill="url(#MyGradient)" >
|
|
16 |
<rect x="100" y="50" width="200" height="100"/>
|
|
17 |
<rect x="400" y="50" width="200" height="100"/>
|
|
18 |
</g>
|
|
19 |
</g>
|
|
20 |
</svg>
|