05-03-2009, 03:55 PM
|
Member
|
|
Join Date: Dec 2008
Location: India
Posts: 80,547
|
|
SVG <circle>
The tag is used to create a circle.
The Tag
The tag is used to create a circle.
Copy the following code into Notepad and save the file as "circle1.svg". Place the file in your Web directory:
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
xmlns="http://www.w3.org/2000/svg">
stroke-width="2" fill="red"/>
Code explanation:
- The cx and cy attributes define the x and y coordinates of the center of the circle. If cx and cy are omitted, the circle's center is set to (0, 0)
- The r attribute defines the radius of the circle
|