Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Usage

Creates a MotionBlur effect PerspectiveTransform effect applied to a JavaFX Node.

...

Code Block
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 text(x: 20, y: 65, content: "Perspective", fill: "yellow", font: "bold 36pt")
                     perspectiveTransform perspectiveTransform(ulx: 10, uly: 10, urx: 310, ury:40,
                        lrx          lrx: 310, lry: 60, llx: 10, lly: 60)
                 }
    }
}

});