COAP:COAP-2100/week4: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
Line 73: Line 73:
* [[SVG/SMIL animation tutorial]] or [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG]
* [[SVG/SMIL animation tutorial]] or [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG]


'''Due: Wednesday week 5 (before start of class)
'''Due: Wednesday week 5 (before start of class)'''


[[Category: COAP_2100]]
[[Category: COAP_2100]]

Revision as of 08:57, 16 April 2012

Week 4

Topics covered

  • Creating simple static SVG (continued)
  • Dynamic SVG (part I, continued on week 5)

Teaching materials, software and reference manuals

(1) SVG Tutorials
(3) SVG-Edit online software
(4) Free SVG drawing tools you can install on your computer
  • Inkscape Powerful, but more difficult drawing tool (export as "pure" SVG before pasting into HTML5)
  • DIA, a popular open source diagramming tool can import/export SVG (Win/Mac/Linux). There are also portable app (Windows) and zip versions
(5) Free SVG clipart

Classroom activities

  • No Monday class
Wednesday

Example code that you can copy / paste into an editor

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg">
  <title>Simple animate example</title>
  <desc>Rectangle shape will change</desc>
  <rect x="50" y="50" width="10" height="100" style="fill:#CCCCFF;stroke:#000099">
    <animate attributeName="width"  from="10px"  to="100px" 
	     begin="0s" dur="10s" />
    <animate attributeName="height" from="100px" to="10px"
	     begin="0s" dur="10s" />
  </rect>
  <text x="50" y="170" style="stroke:#000099;fill:#000099;font-size:14;">
  Hello. Admire the dynamic rectangle</text>
</svg>

Homework 4

  • Create an HTML5+SVG page with some interesting contents
    • You may copy/paste from the text from some other source under the condition that do not violate any copyright and that you cite the source.
    • You may keep the HTML very simple (ie. only use h1 and p tags)
  • Add illustrations made with SVG. You must at least create two simple animations. You are allowed to copy/paste free SVG code, e.g. from openclipart.org or you can draw them yourself.
  • Submit the file to the worldclass room.

Main resources:

Due: Wednesday week 5 (before start of class)