Generated Object

javafx.scene.effect.ColorAdjust

Attributes

This node takes the attributes of the javafx.scene.effect.ColorAdjust class, see javafx.scene.effect.ColorAdjust.

Content

An optional Effect may be provides that is used as input to the ColorAdjust effect.

Usage

Creates a ColorAdjust effect applied to a JavaFX Node.

Examples

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

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

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
        text(content: "Blurry Text!", fill: "red", font: "bold 36pt", x: 10, y: 10, textOrigin: "top") {
            colorAdjust(contrast: 4, brightness: -0.8, hue: 0.2)
        }
    }
}

});