COAP:COAP-2100/week5: Difference between revisions
Jump to navigation
Jump to search
m (→Wednesday) |
mNo edit summary |
||
Line 14: | Line 14: | ||
* [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG], part of [http://commons.oreilly.com/wiki/index.php/SVG_Essentials SVG Essentials] On-line SVG textbook. Wiki version of J. David Eisenberg (2002), ''SVG Essentials'', O'Reilly | * [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG], part of [http://commons.oreilly.com/wiki/index.php/SVG_Essentials SVG Essentials] On-line SVG textbook. Wiki version of J. David Eisenberg (2002), ''SVG Essentials'', O'Reilly | ||
* You can find a PDFs of SVG book chapter in the worldclassroom / Documents folder | * You can find a PDFs of SVG book chapter in the worldclassroom / Documents folder | ||
==== Wednesday ==== | |||
Simple Motion example using mpath: | Simple Motion example using mpath: | ||
Line 48: | Line 52: | ||
</source> | </source> | ||
==== Homework 5 ==== | |||
==== Homework ==== | |||
* Create an SVG page that includes some animation | |||
* Details TBA on Wednesday. | |||
[[Category: COAP_2100]] | [[Category: COAP_2100]] |
Revision as of 23:58, 9 February 2014
Week 5
Topics covered
- Static SVG (continued)
- Dynamic SVG
Monday
- Static SVG tutorial (grouping constructs)
- SVG/SMIL animation tutorial
- SVG Essentials/Animating and Scripting SVG, part of SVG Essentials On-line SVG textbook. Wiki version of J. David Eisenberg (2002), SVG Essentials, O'Reilly
- You can find a PDFs of SVG book chapter in the worldclassroom / Documents folder
Wednesday
Simple Motion example using mpath:
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Simple Motion animation example</title>
<rect x="15" y="5" rx="5" ry="5" width="20" height="10" style="fill:#CCCCFF;stroke:#000099">
<animateMotion dur="6s" repeatCount="indefinite" rotate="auto">
<mpath xlink:href="#path1"/>
</animateMotion>
</rect>
<path id="path1" d="m21,39c0,0 46,-44 79,-1c33,43 62,58 97,26c35,-32 86,-30 86,-31c0,-1 61,-9 29,43c-32,
52 -19,51 -87,51c-68,0 -158,-5 -158,-6c0,-1 -40,-11 -41,-12"
stroke-width="5" stroke="#000000" fill="none"/>
</svg>
Simple Motion example using path
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Simple Motion animation example</title>
<rect x="15" y="5" rx="5" ry="5" width="20" height="10"
style="fill:#CCCCFF;stroke:#000099">
<animateMotion dur="6s" repeatCount="indefinite" rotate="auto"
path ="m21,39c0,0 46,-44 79,-1c33,43 62,58 97,26c35,-32 86,-30 86,-31c0,-1 61,-9 29,43c-32,
52 -19,51 -87,51c-68,0 -158,-5 -158,-6c0,-1 -40,-11 -41,-12"/>
</rect>
</svg>
Homework 5
- Create an SVG page that includes some animation
- Details TBA on Wednesday.