Provides a 3D effect Sphere 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
Sphere {
effect: Glow {}
centerX: 70
centerY: 70
radius: 50
shadowHeight: 10
base: Color.hsb(hue, 1.0, 1.0)
specular: Color.hsb(hue - 40, 0.9, 0.7)
}
General Options
(see JavaFXDoc for details)
| Parameter | Default | Description |
|---|
| centerX | 0 | x coordinate of the Sphere center |
| centerY | 0 | y coordinate of the Sphere center |
| radius | 20 | Radius of the Sphere |
| base | BLUE | Sphere background color |
| edge | | Edge color |
| ambient | | Ambient color |
| specular | | Specular color |
| shine | | Shine color |
| shadowSize | 0.7 | Shadow size as percent of Sphere |
| shadowHeight | 0 | Pixel displacement of shadow from Sphere |
Other options may be available, including public variables and methods and will be detailed in the JavaFXDoc
<< Back to JFXtras FrontPage < Back to Shapes