+1

How to draw polygon in canvas?

I am noobie at canvas and I know, how to make rectange, but I don't know how to make polygon. I already know

12/7/2019 7:09:26 PM

Ashas Yiksvorogom

1 Answer

New Answer

+1

There is no n-sided polygon command so you have to create polygons by drawing paths. See... https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes