+ 1

How to make a curve using <polyline> tag can you please tell

A curve like semicircle

1st Apr 2020, 3:03 PM
meet khurana
meet khurana - avatar
9 odpowiedzi
+ 1
Hey! Use <path> tag for curve shape ------svg graphics------- https://code.sololearn.com/W0txWg4obC59/?ref=app
2nd Apr 2020, 3:51 PM
SAN
SAN - avatar
+ 2
With <polyline>, you will join many connected straight lines and it cannot be smooth. Instead you should use <path> with C for curve. https://code.sololearn.com/W7Yn40akB4yV/?ref=app C takes a beginning point, two control points and one ending point. Try editing the coordinates in my demo and see what happens for understanding.
1st Apr 2020, 3:09 PM
Gordon
Gordon - avatar
+ 2
If necessary, I'll record a YouTube video to explain curve in SVG for you.
1st Apr 2020, 3:14 PM
Gordon
Gordon - avatar
+ 2
BEN_10 Then it is better to explicitly state that he should use <path>, because <polyline> is also <svg> element so orignal asker is already using <svg> so "you should use <svg>" will cause him to get confused.
1st Apr 2020, 3:19 PM
Gordon
Gordon - avatar
+ 1
BEN_10 can u tell me a sample code please I just completed the svg course twice but cant understand
1st Apr 2020, 3:07 PM
meet khurana
meet khurana - avatar
+ 1
BEN_10 <polyline> is one of <svg> element.
1st Apr 2020, 3:11 PM
Gordon
Gordon - avatar