The image below demonstrates the <circle/> and <ellipse/> tags.
1: <svg version="1.1" baseProfile="full" 2: xmlns="http://www.w3.org/2000/svg" 3: width="300px" height="200px" viewBox="0 0 300 200"> 4: 5: <circle cx="100" cy="100" r="95" fill="orange" stroke="blue" stroke-width="5px"/> 6: <ellipse cx="200" cy="50" rx="95" ry="45" fill="green" stroke="black" stroke-width="3px"/> 7: 8: </svg>
This example shows what happens when two shapes intersect. The shapes are drawn in the order in which they appear in the file. So, shapes which appear later in the file appear on top.
An equation for a circle in the (x,y)-plane is given by:
The geometric attributes of the <circle/> tag are highlighted in bold in the equation above.
The equation of an ellipse in the (x,y)-plane is given by:
Again, bolded letters represent the geometric attributes of the <ellipse/> tag.