add vector-effect example
authorErik Dahlström <ed@opera.com>
Thu, 07 Feb 2013 09:26:04 +1100
changeset 440 2a261c858619
parent 439 d6c09c2951fe
child 441 0b89e0741708
child 447 97d2e0f09d8a
add vector-effect example
master/images/painting/non-scaling-stroke.svg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/master/images/painting/non-scaling-stroke.svg	Thu Feb 07 09:26:04 2013 +1100
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"
+     width="6cm" height="4cm" viewBox="0 0 600 400" 
+     viewport-fill="rgb(255,150,200)">
+
+  <desc>Example non-scaling stroke</desc>
+  <rect x="1" y="1" width="598" height="398" fill="none" stroke="black"/>
+  
+  <g transform="scale(9,1)">
+    <line stroke="black" stroke-width="5" x1="10" y1="50" x2="10" y2="350"/>
+    <line vector-effect="non-scaling-stroke" stroke="black" stroke-width="5" 
+        x1="32" y1="50" x2="32" y2="350"/>
+    <line vector-effect="none" stroke="black" stroke-width="5" 
+        x1="55" y1="50" x2="55" y2="350"/>
+  </g>
+
+</svg>