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.Blend

Attributes

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

Content

A blend may have a topInput and bottomInput effect as content.

Usage

Creates a blend 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) ) {
        rectangle(x: 20, y: 20,width: 100, height: 100, fill: red) {
            blend(mode: "multiply") {
                topInput() {
                    colorInput(paint: blue, x: 10, y: 20, width: 200, height: 200)
                }
                bottomInput() {
                    colorInput(paint: red, x: 5, y: 15, width: 205, height: 205)
                }
            }
        }
    }
}

});