Assignment #3


Part A:
Using the colors  #a06, #a80 , #086,  and  #53c
make an SVG document that looks as much as you can like this (noting that the curves, at their points of contact with the line segments have slopes equivalent to those of the lines they connect to):

line segments joined by Bezier

Part B:
Using the image at http://srufaculty.sru.edu/david.dailey/public/machines/fireengine.gif ,
make an SVG document that looks as much as you can like this:
fireengine in cloverleaf

Part C:
Make a web page with SVG (either pure SVG or HTML with SVG within). Make it so that wherever someone clicks the mouse, a new rectangle is created at that location. The rectangle should surround a number representing the order in which that object was created. That is, the first rectangle should be labeled "1", the second "2" and so forth.

extra credit:
Whenever a rectangle is clicked, it should begin moving with a random speed and in a random direction, but "bouncing" off the edges of the screen so that it remains visible.