Svg part 4
Other Shape Elements
<rect> defines a rectangle:
The following code will draw a green-filled rectangle.
<line> defines a line segment:
(x1, y1) define the start coordinates(x2, y2) define the end coordinates.
<polyline> defines shapes built from multiple line definitions:
Points are the polyline's coordinates.
The code below will draw a black check sign:
The width and height attributes of the <rect> element define the height and the width of the rectangle.
Comments
Post a Comment