Overview
The Donut class defines a regular polygon with a hole in the middle
the code:
import org.jfxtras.scene.shape.Donut;
import javafx.scene.paint.*;
Donut {
angle: 0
centerX: 50
centerY: 50
outerRadius: 40
innerRadius: 20
sides: 7
fill: Color.BLACK
}produces:

Profile: desktop
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | centerX | Number | ![]() | ![]() | ![]() | 0 |
Defines the horizontal position of the center of the polygon in pixels. |
| public | centerY | Number | ![]() | ![]() | ![]() | 0 |
Defines the vertical position of the center of the polygon in pixels. |
| public | innerRadius | Number | ![]() | ![]() | ![]() | 10 |
Defines the radius of the hole in the middle of the polygon in pixels. |
| public | outerRadius | Number | ![]() | ![]() | ![]() | 30 |
Defines the outer radius (or total radius) of the polygon in pixels. |
| public | sides | Integer | ![]() | ![]() | ![]() | 5 |
Defines the number of sides of the polygon.
Defines the number of sides of the polygon. A value of 3 is a triangle, 4 is a square, etc. Values below 3 are invalid. 5 |

