Open Source JavaFX Now!

JFXtras Core Logo

Star2

Provides a Star shape as below:

Try it out

If you would like to try a sample of how this control operates, run the ShapesDemoFX.fx application in org.jfxtras.scene.shape.

Sample Code


Star2 { centerX: 40 centerY: 40 outerRadius: 30 innerRadius: 5 count: 2 fill: Color.RED stroke: Color.BLACK }

General Options

(see JavaFXDoc for details)

Parameter   Default   Description
centerX0x coordinate of the star center
centerY0y coordinate of the star center
outerRadius30Radius of the star tips
innerRadius10Radius of the star center / start of rays
count5Number of rays


Other options may be available, including public variables and methods and will be detailed in the JavaFXDoc

<< Back to JFXtras FrontPage < Back to Shapes
1 Attachments 1 Attachments
348 Views