Generated Object

javafx.scene.effect.DropShadow

Attributes

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

Content

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

Usage

Creates a DropShadow 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) ) {
        rectangle(x: 20, y: 20,width: 100, height: 100, fill: red) {
            dropShadow(offsetY: 3, color: [0.4, 0.4, 0.4])
        }
    }
}

});