COAP:COAP-2100/week4: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
Line 5: Line 5:
==== Topics covered ====
==== Topics covered ====


* Creating simple static SVG (continued)
* Introduction to static [[SVG]]
* Dynamic SVG (part I, continued on week 5)
* Using [[SVG]] within [[HTML5]]
* Dynamic SVG (if time left, more on week 5)
* Recall of XML principles (well-formed XML)


==== Teaching materials, software and reference manuals ====


; (1) SVG Tutorials
==== Monday ====
* See [[SVG]] for finding online tutorials
* [[Using SVG with HTML5 tutorial]] for using SVG (Monday class and homework)
* [[Static SVG tutorial]] (grouping constructs)
* [[SVG/SMIL animation tutorial]] or [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG]
* [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 PDF of an SVG book in the worldclassroom / Documents folder


; (3) SVG-Edit online software
* Creating SVG with [http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html svg-edit]
* [http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html svg-edit] (Online SVG editor)
* Embedding SVG in HTML 5. See [[Using SVG with HTML5 tutorial]]
* [http://svg-edit.googlecode.com/svn/branches/2.5.1/editor/svg-editor.html SVG-edit 2.5.1] (stable version, in case the above won't work).
* Download SVG from http://openclipart.org
* If you are curious about the "about", follow the links on the [http://code.google.com/p/svg-edit/ svg-edit home page]
* Repairing clip art from openclipart.org with Inkscape (export "as SVG")
* Scaling SVG graphics
* https://developer.mozilla.org/en/SVG (reference)


; (4) Free SVG drawing tools you can install on your computer
'''Example HTML5/SVG code that you can copy/paste into an editor'''
* [http://www.inkscape.org/ Inkscape] Powerful, but more difficult drawing tool (export as "pure" SVG before pasting into HTML5)
<source lang="XML">
* [http://dia-installer.de/ DIA], a popular open source diagramming tool can import/export SVG (Win/Mac/Linux). There are also portable app (Windows) and zip versions
<!doctype html>
<html>
  <head>
    <title>HTML5 SVG demo</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>


; (5) Free SVG clipart
  <body>
* [http://www.openclipart.org/ Open Clip Art Library] (openclipart.org)
    <h1>HTML5 SVG Demo</h1>
    <p> A nice green circle:</p>


==== Classroom activities ====
    <svg id="circle" height="100" xmlns="http://www.w3.org/2000/svg">
      <circle cx="30" cy="30" r="30" fill="green" />
    </svg>


* No Monday class
  </body>
</html>
</source>


===== Wednesday =====
==== Wednesday ====


* Discussion about the mid-term exam (Wed week 5)
* Discussion about the mid-term exam (Wed week 5)
* Demo of the Inkscape SVG editor (editing the XML)
* Demo of the Inkscape SVG editor (if it works in the computer room)
* The Eisenberg SVG essentials book ([http://commons.oreilly.com/wiki/index.php/SVG_Essentials SVG Essentials], wiki version)
* The Eisenberg SVG essentials book ([http://commons.oreilly.com/wiki/index.php/SVG_Essentials SVG Essentials], wiki version)
* Static SVG continued (parts of the [[Static SVG tutorial]])
* Static SVG continued (parts of the [[Static SVG tutorial]])
* [[SVG/SMIL animation tutorial]]
* Dynamic SVG (if time left)
 
; (1) SVG Tutorials
* See [[SVG]] for finding online tutorials
* [[SVG/SMIL animation tutorial]] or [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG]
* [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 PDF of an SVG book in the worldclassroom / Documents folder
* Demo of the Inkscape SVG editor (editing the XML)
* https://developer.mozilla.org/en/SVG (reference)
* https://developer.mozilla.org/en/SVG (reference)


Line 59: Line 73:
</svg>
</svg>
</source>
</source>


==== Homework 4 ====
==== Homework 4 ====
Line 73: Line 88:
* [[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: Monday week 6 (before start of class)'''
'''Due: Wednesday week 5 (before start of class)'''
 
==== Teaching materials, software and reference manuals ====
 
; (1) SVG Tutorials
* See [[SVG]] for finding online tutorials
* [[Static SVG tutorial]]
* [[Using SVG with HTML5 tutorial]]
* [[SVG/SMIL animation tutorial]] (if time left)
* [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
* [[SVG/SMIL animation tutorial]] or [http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Animating_and_Scripting_SVG SVG Essentials/Animating and Scripting SVG]
 
; (2) HTML Tutorials (if needed)
* [[HTML and XHTML elements and attributes]]
* [http://www.w3.org/MarkUp/Guide/ D. Raggett's HTML 4 tutorial] (outdated, but ok as introduction, use the HTML5 document header)
 
; (3) SVG-Edit online software
* [http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html svg-edit] (Online SVG editor)
 
; (4) Free SVG drawing tools you can install on your computer
* [http://www.inkscape.org/ Inkscape] Powerful, but more difficult drawing tool (export as "pure" SVG before pasting into HTML5)
* [http://dia-installer.de/ 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
* [http://www.openclipart.org/ Open Clip Art Library] (openclipart.org)
 


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

Revision as of 00:46, 3 February 2014

Week 4

Topics covered

  • Introduction to static SVG
  • Using SVG within HTML5
  • Dynamic SVG (if time left, more on week 5)
  • Recall of XML principles (well-formed XML)


Monday

Example HTML5/SVG code that you can copy/paste into an editor

<!doctype html>
<html>
  <head>
    <title>HTML5 SVG demo</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>

  <body>
    <h1>HTML5 SVG Demo</h1>
    <p> A nice green circle:</p>

    <svg id="circle" height="100" xmlns="http://www.w3.org/2000/svg">
      <circle cx="30" cy="30" r="30" fill="green" />
    </svg>

  </body>
</html>

Wednesday

  • Discussion about the mid-term exam (Wed week 5)
  • Demo of the Inkscape SVG editor (if it works in the computer room)
  • The Eisenberg SVG essentials book (SVG Essentials, wiki version)
  • Static SVG continued (parts of the Static SVG tutorial)
  • Dynamic SVG (if time left)
(1) SVG Tutorials

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)

Teaching materials, software and reference manuals

(1) SVG Tutorials
(2) HTML Tutorials (if needed)
(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