javafx.scene.effect.ColorInput
This node takes the attributes of the javafx.scene.effect.ColorInput class, see javafx.scene.effect.ColorInput.
There is no content for this node.
Creates a ColorInput effect applied to a JavaFX Node.
GroovyFX.start({
def sg = new SceneGraphBuilder(it);
sg.stage(
title: "ColorInput Example",
x: 100, y: 100, width: 400, height:400,
visible: true,
style: "decorated",
) {
scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
text(content: "Some Text!", fill: "red", font: "bold 36pt", x: 10, y: 10, textOrigin: "top") {
colorInput(paint: blue, x: 20, y: 10, width: 200, height: 200)
}
}
}
});
|