HTML polygonsand polylines | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

HTML polygonsand polylines

Please, advise if it is possible to create an SVG element polygon with the different stroke width. Or is it better to use multiple polylines? If so, how can we make all angles of the figure look properly, without any indentations or protrusions? For example, a triangle must have two 4px lines and one 6px. Would that be possible? Thank you in advance!

19th Mar 2019, 8:27 PM
Nadiia Shtarova
Nadiia Shtarova - avatar
1 ответ
+ 8
Hmm, I don’t think that’s possible. Better use multiple polylines, as you said.
19th Mar 2019, 8:54 PM
Rowsej
Rowsej - avatar