...
| 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) {
//rotate(angle: 30, axis: Rotate.Y_AXIS)
//scale(x: 1.2)
//translate(x: -100, y: -50, z:-50)
//shear(x: -0.35, y: 0)
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)
}
}
}
})
|