Generated Object

javafx.scene.paint.Color

Value Argument

hue - the hue in degrees component of an hsb color using an integer in the range of 0 to 360

saturation - the saturation component of an hsb color  in the range of 0.0 to 1.0

brightness - the brightness component of an hsb color  in the range of 0.0 to 1.0
opacity - the optional opacity of a color in the range 0.0 to 1.0. If opacity is not present then the opacity will be 1.0.

Attributes

This node takes no attributes

Content

This node takes no content.

Usage

This node creates a color based on rgb values. see javafx.scene.paint.Color#hsb

Examples

GroovyFX.start({
def sg = new SceneGraphBuilder(it);

sg.stage(
    title: "HSB Example",
    x: 100, y: 100, width: 400, height:400,
    visible: true,
    style: "decorated",
    primary: true
) {

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {

    }
}
});