summaryrefslogtreecommitdiffstatsci
path: root/tests/data/linear-gradient-href.svg
blob: 28eb245b24e9d960471634178e1c14acc7a62449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<svg
  viewBox="0 0 10 10"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <linearGradient id="g1" >
      <stop offset="0%" stop-color="black" />
      <stop offset="45%" stop-color="red" />
      <stop offset="55%" stop-color="green" />
      <stop offset="100%" stop-color="blue" />
    </linearGradient>
    <linearGradient id="g2" href="#g1" gradientTransform="scale(0.25)"/>
  </defs>

  <!-- using my linear gradient -->
  <g transform="translate(2,2)">
    <circle cx="5" cy="5" r="4" fill="url(#g2)" 
      transform="rotate(10)" />
  </g>
</svg>