The SVG <line> element defines a line segment starting at one point and ending at another. It has four attributes:
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.
Here is a simple example:
Changing <line> attributes' values you can get, for example, these pictures:
Copyright © Altsoft All rights reserved.