- 1

Anyone to help me understand polygon points in SVG very well.

The values like 100 200,40 100,0 .how do they bring up a shape of a polygon.

1st Jan 2020, 1:05 AM
Wadika
Wadika - avatar
2 odpowiedzi
+ 1
The coordinate system for SVG is made up of one quadrant, where (0, 0) starts in the top-left corner. As you go left, x-values increase positively, and as you go down, y-values increase. With this information, let's take a look at creating a polygon. When you provide the polygon element with a set of points, it takes these points, plots them on the coordinate system we just talked about, and connects them from first to last.
1st Jan 2020, 1:20 AM
Jianmin Chen
Jianmin Chen - avatar
0
Did you mean to say "As you go right, x-values increase positively ..." Jianmin Chen ?
1st Jan 2020, 6:41 AM
Ipang