HTML5 canvas Polygon Tutorial
To create a polygon with Konva, we can instantiate a Konva.Line() object with the closed property set to true.
For full list of properties and methods, see the Line API Reference.
- Vanilla
- React
- Vue
To create a polygon with Konva, we can instantiate a Konva.Line() object with the closed property set to true.
For full list of properties and methods, see the Line API Reference.