+ 1
What is the difference between polygon and path?
What is the difference between SVG polygon and path?
3 Antworten
+ 9
Both can create shapes. Polygon will automatically close the shape for you (by returning to the first point) after drawing at least three sides, and is composed of a series of connected straight lines, which means it does not scale well.
Paths can use straight OR curved lines, and do not auto-close the shape for you. Path is probably the most powerful basic shape element in SVG.
+ 3
Polygon syntax is also a little soberest than the polygone one...
+ 1
Thank you very much!