Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
"<line>"

Creates a line between two points, using the x1, y1, x2, and y2 attributes.

<line x1="100" y1="100" x2="200" y2="200" stroke="black" stroke-width="2" />

x1,y1 x2,y2

Attribute Default Description
x1 0 Start X coordinate.
y1 0 Start Y coordinate.
x2 0 End X coordinate.
y2 0 End Y coordinate.