Overview
The RegularPolygon class defines a poligon that is
centered and each side has the same length.
the code:
import org.jfxtras.scene.shape.RegularPolygon;
import javafx.scene.paint.*;
RegularPolygon {
angle: 0
centerX: 50
centerY: 50
radius: 40
sides: 6
fill: Color.BLACK
}produces:

Profile: desktop
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | centerX | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the horizontal position of the center of the polygon in pixels. |
| public | centerY | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the vertical position of the center of the polygon in pixels. |
| public | radius | Number | ![]() | ![]() | ![]() | 30 |
Defines the radius of the polygon in pixels. |
| public | sides | Number | ![]() | ![]() | ![]() | 5 |
Defines the number of sides of the polygon. |
