SVG <polyline>

SVG बांध - <polyline>

उदाहरण 1

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

स्वयं प्रयोग करें

कोड व्याख्या:

  • points अटीबाइंट ड्राइंग परिवर्तीय बिन्दु सूची (x और y निर्देशांक) निर्धारित करता है

उदाहरण 2

एक अन्य केवल रेखाओं से बने उदाहरण:

यह 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>

स्वयं प्रयोग करें