ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Shapes > Drawing a stroked ellipse

The ellipse can be displayed using the ellipse element. Stroke color can be set using the stroke attribute. The width of the line is set using the stroke-width.


Output
Output - picture
SVG version


Source
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" >
     <ellipse cx="50" cy="50" rx="20" ry="10" fill="none" stroke="red" stroke-width="2"/>
</svg>