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

All > SVG > Shapes > Drawing a stroked rectangle

The rectangle can be displayed using the rect element. Fill 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" >
     <rect x="10" y="10" width="80" height="40" fill="none" stroke="blue" stroke-width="1"/>
</svg>