Generated Object

javafx.scene.effect.PerspectiveTransform

Attributes

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

Content

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

Usage

Creates a PerspectiveTransform 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) ) {
        group( cache: true, layoutX: 0, layoutY: 0) {
            rectangle(x: 10, y: 10, width: 280, height: 80, fill: "blue")
            text(x: 20, y: 65, content: "Perspective", fill: "yellow", font: "bold 36pt")
            perspectiveTransform(ulx: 10, uly: 10, urx: 310, ury:40,
                                 lrx: 310, lry: 60, llx: 10, lly: 60)
        }
    }
}

});