diff options
Diffstat (limited to 'test/svg/gradients.svg')
| -rw-r--r-- | test/svg/gradients.svg | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/svg/gradients.svg b/test/svg/gradients.svg new file mode 100644 index 0000000..a5f2c81 --- /dev/null +++ b/test/svg/gradients.svg @@ -0,0 +1,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> |
