Generated Object

javafx.scene.effect.InnerShadow

Attributes

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

Content

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

Usage

Creates a InnerShadow effect applied to a JavaFX Node.

Examples

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

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

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
        text(x: 10, y: 140, cache: true, content: "Some Text", fill: "red", font: "bold 36pt") {
            innerShadow(offsetX: 4, offsetY: 4)
        }
    }
}

});