summaryrefslogtreecommitdiff
path: root/test/svg/gradients.svg
blob: a5f2c8166b23e6f1f9b741a2dd8f14d198113093 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 160" width="240" height="160">
  <defs>
    <linearGradient id="lin"><stop offset="0" stop-color="#58c4dd"/><stop offset="1" stop-color="#fc6255"/></linearGradient>
    <linearGradient id="diag" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#f7d96f"/><stop offset="50%" stop-color="#83c167"/><stop offset="100%" stop-color="#1c1c1f"/></linearGradient>
    <linearGradient id="user" gradientUnits="userSpaceOnUse" x1="10" y1="0" x2="60" y2="0" spreadMethod="reflect"><stop offset="0" stop-color="#ece6e2"/><stop offset="1" stop-color="#9a72ac"/></linearGradient>
    <linearGradient id="derived" xlink:href="#lin" gradientTransform="rotate(90 0.5 0.5)"/>
    <radialGradient id="rad"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#58c4dd" stop-opacity="0.2"/></radialGradient>
    <radialGradient id="focus" cx="0.5" cy="0.5" r="0.5" fx="0.3" fy="0.3"><stop offset="0" stop-color="#f7d96f"/><stop offset="1" stop-color="#c55f73"/></radialGradient>
  </defs>
  <rect x="10" y="10" width="100" height="40" fill="url(#lin)"/>
  <rect x="130" y="10" width="100" height="60" fill="url(#diag)"/>
  <rect x="10" y="60" width="110" height="30" fill="url(#user)"/>
  <rect x="10" y="100" width="50" height="50" fill="url(#derived)"/>
  <circle cx="110" cy="125" r="30" fill="url(#rad)"/>
  <ellipse cx="190" cy="115" rx="40" ry="35" fill="url(#focus)" stroke="url(#lin)" stroke-width="4"/>
</svg>