javafx.scene.transform.Affine
This node takes the attributes of the javafx.scene.transform.Affine class, see javafx.scene.transform.Affine
This node has no content
Defines an affine transform that may be applied to a JavaFX node.
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)
}
}
}
})
|