The SVG <line> element defines a line segment starting at one point and ending at another. It has four attributes:
<line>
x1
y1
x2
y2
Lines are one-dimensional geometrical shapes and trerefore the <line> element can not be filled. To set the colour of a line use stroke attribute.
stroke
Here is a simple example:
Changing <line> attributes' values you can get, for example, these pictures:
Copyright © 2009, Altsoft s.r.o. Czech Republic. All rights reserved. Altsoft Privacy Policy.