A polygon is a closed figure formed using n number of lines existing in the same plane. In JavaFX a polygon is represented by the javafx.scene.shape.Polygon class.

To create a polygon you need to −

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements