Tuesday, February 28, 2012

What I have learned so far... SVG!



What I have learned so far...

          SVG is a XML graphic format for creating vetorial images and animations for the web.
          Like HTML, SVG also has a minimal page. Inside this minimal code, you have the following variables: version, viewbox (dimensions of the visible document. It uses x and y coordinates), width and height (size of the document), and ID (.svg).
          To create a circle you add the tag <circle> and you can change/add its radius size, color, location in the document, stroke and stroke size. Each circle created should be inside a SVG tag (<svg>).
          You can also create rectangles, ellipses, lines and polygons. There are different markups for each shape. For example, for a rectangle you have to add the width and height.