Added the src attribute to the svg tag
[xmldoc.git] / doc / filter.svg
diff --git a/doc/filter.svg b/doc/filter.svg
new file mode 100644 (file)
index 0000000..43e2e41
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<svg width="800" height="200" version="1.1"
+     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+      <radialGradient id="MyGradient" gradientUnits="userSpaceOnUse"
+                      cx="200" cy="100" r="150" fx="200" fy="100">
+        <stop offset="0%" stop-color="red" />
+        <stop offset="50%" stop-color="blue" />
+        <stop offset="100%" stop-color="red" />
+      </radialGradient>
+      <filter id="GreyOut">
+        <feColorMatrix type="saturate" in="SourceGraphic" values="0.05"/>
+      </filter>
+  </defs>
+
+  <rect fill="url(#MyGradient)" stroke="black"
+        x="40" y="40" width="300" height="160"/>
+
+  <g  transform="translate(380,0)" filter="url(#GreyOut)">
+  <rect fill="url(#MyGradient)" stroke="black"
+        x="40" y="40" width="300" height="160"/>
+  </g>
+
+</svg>