Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Generated Object

javafx.scene.effect.MotionBlur

Attributes

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

Content

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

Usage

Creates a MotionBlur effect applied to a JavaFX Node.

Examples

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) ) {
        text(content: "Blurry Text!", fill: "red", font: "bold 36pt", x: 10, y: 10, textOrigin: "top") {
            motionBlur(radius: 15, angle: -30)
        }
    }
}

});