Transform keySpline graphs into SVGs for SVG Animate.
--- a/master/animate.html Sat May 26 10:04:08 2012 -0700
+++ b/master/animate.html Sat May 26 16:49:38 2012 -0700
@@ -1232,34 +1232,29 @@
href="http://www.w3.org/TR/2001/REC-smil-animation-20010904/#TimingAndRealWorldClockTime">
Timing and real-world clock times</a>.</p>
<div class="example">
- <table summary="examples of keySplines">
+ <table summary="examples of keySplines" style="border-collapse:separate; border-spacing: 20px;">
<caption align="bottom">
Examples of <span class="attr-name">keySplines</span>
</caption>
<tr>
- <td width="10"> </td>
- <td width="172"><img width="172" height="174"
+ <td width="250"><img class="bordered" width="250" height="250"
alt="Example keySplines01 - keySplines of 0 0 1 1 (the default)"
- src="images/animate/keySplines01.png" /> <span
+ src="images/animate/keySplines01.svg" /> <span
class="table-heading-1">keySplines="0 0 1 1"
(the default)</span></td>
- <td width="20"> </td>
- <td width="172"><img width="172" height="174"
+ <td width="250"><img class="bordered" width="250" height="250"
alt="Example keySplines01 - keySplines of .5 0 .5 1"
- src="images/animate/keySplines02.png" /> <span
- class="table-heading-1">keySplines=".5 0 .5 1"<br />
- </span></td>
+ src="images/animate/keySplines02.svg" /> <span
+ class="table-heading-1">keySplines=".5 0 .5 1"</span></td>
</tr>
<tr>
- <td width="10"> </td>
- <td width="172"><img width="172" height="174"
+ <td width="250"><img class="bordered" width="250" height="250"
alt="Example keySplines01 - keySplines of 0 .75 .25 1"
- src="images/animate/keySplines03.png" /> <span
+ src="images/animate/keySplines03.svg" /> <span
class="table-heading-1">keySplines="0 .75 .25 1"</span></td>
- <td width="20"> </td>
- <td width="172"><img width="172" height="174"
+ <td width="250"><img class="bordered" width="250" height="250"
alt="Example keySplines01 - keySplines of 1 0 .25 .25"
- src="images/animate/keySplines04.png" /> <span
+ src="images/animate/keySplines04.svg" /><span
class="table-heading-1">keySplines="1 0 .25 .25"</span></td>
</tr>
</table>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/master/images/animate/keySplines01.svg Sat May 26 16:49:38 2012 -0700
@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-15 -15 130 130" width="250" height="250">
+ <rect width="100" height="100" fill="none" stroke="black" />
+
+ <path d="M0,100 L100,0" fill="none" stroke="blue" stroke-width="2" />
+
+ <circle cx="100" cy="0" r="2.3" fill="red" />
+ <circle cx="0" cy="100" r="2.3" fill="red" />
+
+ <circle cx="25" cy="75" r="2.3" fill="blue" />
+ <circle cx="50" cy="50" r="2.3" fill="blue" />
+ <circle cx="75" cy="25" r="2.3" fill="blue" />
+
+ <text x="-10" y="109" fill="red" font-size="9">(0,0)</text>
+ <text x="90" y="-4" fill="red" font-size="9">(1,1)</text>
+</svg>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/master/images/animate/keySplines02.svg Sat May 26 16:49:38 2012 -0700
@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-15 -15 130 130" width="250" height="250">
+ <rect width="100" height="100" fill="none" stroke="black" />
+
+ <line x1="50" y1="100" x2="0" y2="100" stroke="red" stroke-width="2" />
+ <line x1="50" y1="0" x2="100" y2="0" stroke="red" stroke-width="2" />
+
+ <path d="M0,100 C50,100 50,0 100,0" fill="none" stroke="blue" stroke-width="2" />
+
+ <circle cx="0" cy="100" r="2.3" fill="black" />
+ <circle cx="100" cy="0" r="2.3" fill="black" />
+
+ <circle cx="50" cy="0" r="2.3" fill="red" />
+ <circle cx="50" cy="100" r="2.3" fill="red" />
+
+ <circle cx="25" cy="90" r="2.3" fill="blue" />
+ <circle cx="50" cy="50" r="2.3" fill="blue" />
+ <circle cx="75" cy="10" r="2.3" fill="blue" />
+
+ <text x="40" y="109" fill="red" font-size="9">(0.5,0)</text>
+ <text x="40" y="-4" fill="red" font-size="9">(0.5,1)</text>
+
+ <text x="-10" y="109" font-size="9">(0,0)</text>
+ <text x="90" y="-4" font-size="9">(1,1)</text>
+</svg>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/master/images/animate/keySplines03.svg Sat May 26 16:49:38 2012 -0700
@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-15 -15 130 130" width="250" height="250">
+ <rect width="100" height="100" fill="none" stroke="black" />
+
+ <line x1="0" y1="100" x2="0" y2="25" stroke="red" stroke-width="2" />
+ <line x1="100" y1="0" x2="25" y2="0" stroke="red" stroke-width="2" />
+
+ <path d="M0,100 C0,25 25,0 100,0" fill="none" stroke="blue" stroke-width="2" />
+
+ <circle cx="0" cy="100" r="2.3" fill="black" />
+ <circle cx="100" cy="0" r="2.3" fill="black" />
+
+ <circle cx="0" cy="25" r="2.3" fill="red" />
+ <circle cx="25" cy="0" r="2.3" fill="red" />
+
+ <circle cx="25" cy="19" r="2.3" fill="blue" />
+ <circle cx="50" cy="6.1" r="2.3" fill="blue" />
+ <circle cx="75" cy="1.5" r="2.3" fill="blue" />
+
+ <text x="-10" y="20" fill="red" font-size="9">(0,.75)</text>
+ <text x="7" y="-4" fill="red" font-size="9">(0.25,1)</text>
+
+ <text x="-10" y="109" font-size="9">(0,0)</text>
+ <text x="90" y="-4" font-size="9">(1,1)</text>
+</svg>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/master/images/animate/keySplines04.svg Sat May 26 16:49:38 2012 -0700
@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-15 -15 130 130" width="250" height="250">
+ <rect width="100" height="100" fill="none" stroke="black" />
+
+ <line x1="0" y1="100" x2="100" y2="100" stroke="red" stroke-width="2" />
+ <line x1="100" y1="0" x2="25" y2="75" stroke="red" stroke-width="2" />
+
+ <path d="M0,100 C100,100 25,75 100,0" fill="none" stroke="blue" stroke-width="2" />
+
+ <circle cx="0" cy="100" r="2.3" fill="black" />
+ <circle cx="100" cy="0" r="2.3" fill="black" />
+
+ <circle cx="100" cy="100" r="2.3" fill="red" />
+ <circle cx="25" cy="75" r="2.3" fill="red" />
+
+ <circle cx="25" cy="99" r="2.3" fill="blue" />
+ <circle cx="50" cy="93.5" r="2.3" fill="blue" />
+ <circle cx="75" cy="31" r="2.3" fill="blue" />
+
+ <text x="90" y="109" fill="red" font-size="9">(1,0)</text>
+ <text x="2" y="60" fill="red" font-size="9">(.25,.25)</text>
+
+ <text x="-10" y="109" font-size="9">(0,0)</text>
+ <text x="90" y="-4" font-size="9">(1,1)</text>
+</svg>
\ No newline at end of file