본문 바로가기
HTML5/SVG

SVG Polyline

by Jundol 2015. 6. 8.

* 본 글은 W3SCHOOL.COM 의 SVG 편을 해석 공부한 포스팅입니다.

* 필자의 기준이 절대적인 진리는 아닙니다.



SVG Polyline - <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>


예제 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>


출처 W3School.com - SVG - Polyline

http://www.w3schools.com/svg/svg_polyline.asp

'HTML5 > SVG' 카테고리의 다른 글

SVG Text  (0) 2015.06.08
SVG Path  (0) 2015.06.08
SVG Polygon  (0) 2015.06.08
SVG Line  (0) 2015.06.08
SVG Ellipse  (0) 2015.06.08

댓글