<polyline> 要素は、直線のみから成る形状を作成するために使用します:
SVG コードは次の通りです:
<svg height="200" width="500">
<polyline points="20,20 40,25 60,40 80,120 120,140 200,180"
style="fill:none;stroke:black;stroke-width:3" />
</svg>
Try it Yourself »
直線のみからなるその他の例:
SVG コードは次の通りです:
<svg height="180" width="500">
<polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
style="fill:white;stroke:red;stroke-width:4" />
</svg>
Try it Yourself »