Versions Compared

Key

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

Generated Object

javafx.scene.transform.Affine

Attributes

This node takes the attributes of the javafx.scene.transform.Affine class, see javafx.scene.transform.Affine

Content

This node has no content

Usage

Defines an affine transform that may be applied to a JavaFX node.

Examples

Code Block
GroovyFX.start({ primaryStage -> 
    def sg = new SceneGraphBuilder(primaryStage);

    sg.stage(
        title: "CircleT3D (Groovy)",
        width: 400, height:300,
        visible: true,
        resizable: true
    ) {
         scene(fill: lightgreen, camera: new PerspectiveCamera()) {
             rectangle(x: 20, y: 20, width: 100, height: 50, fill: blue) {
                affine(tx: -20, mxx: 2, mxy: 0.5, mxz: 1, 
                    ty: -50, myx: 1, myy: 1.2, myz: 1,
                    tz: 0, mzx: 1, mzy: 1, mzz: 0)
             }
         }
    }
})