Add linked-to example for <discard>.
authorCameron McCormack <cam@mcc.id.au>
Mon, 20 Aug 2012 10:32:04 +1000
changeset 287 9fedc642bc1d
parent 286 8973f69c2dc1
child 288 7d314e7190cb
Add linked-to example for <discard>.
master/examples/discard01.svg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/master/examples/discard01.svg	Mon Aug 20 10:32:04 2012 +1000
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" 
+     width="352" height="240" playbackOrder="forwardOnly">
+    
+  <ellipse cx="98.5" cy="17.5" rx="20.5" ry="17.5" fill="blue" stroke="black" 
+           transform="translate(9 252) translate(3 -296)">
+    <animateTransform attributeName="transform" begin="0s" dur="2s" fill="remove"
+                      calcMode="linear" type="translate" additive="sum"
+                      from="0 0" to="-18 305"/>
+    <discard begin="2s"/>
+  </ellipse>
+  
+  <rect x="182" y="-39" width="39" height="30" fill="red" stroke="black"
+        transform="translate(30 301)">
+    <animateTransform attributeName="transform" begin="1s" dur="2s" fill="remove"
+                      calcMode="linear" type="translate" additive="sum"
+                      from="0 0" to="-26 -304"/>
+    <discard begin="3s"/>
+  </rect>
+  
+  <polygon points="-66,83.5814 -43,123.419 -89,123.419" fill="green" stroke="black" 
+           transform="matrix(1 0 0 1.1798 0 -18.6096)">
+    <animateTransform attributeName="transform" begin="2s" dur="2s"
+                      fill="remove" calcMode="linear" type="translate" additive="sum"
+                      from="0 0" to="460 63.5699"/>
+    <discard begin="4s"/>
+  </polygon>
+</svg>