SVG <polyline>


SVG ポリライン - <polyline>

例 1

<polyline> 要素は、直線のみから成る形状を作成するために使用します:

Sorry, your browser does not support inline SVG.

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 »

例 2

直線のみからなるその他の例:

Sorry, your browser does not support inline SVG.

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 »