Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder

GroovyFX.start({
    def sg = new SceneGraphBuilder();

    sg.stage(
        title: "Arc Example (Groovy)",
        width: 200, height:200,
        visible: true,
    ){ 
        scene (fill: rgb(33,33,33) ) {
            arc(centerX: 100, centerY: 100,
                radiusX: 50, radiusY: 50,
                startAngle: -45, length: 180,
                fill: red, type: "chord")
        }
    }
});