Java Reference
In-Depth Information
70,
false,
CycleMethod.REFLECT,
new
Stop(0f, Color.rgb(0, 255, 0, .784)),
new
Stop(1.0f, Color.rgb(0, 0, 0, .784)));
roundRect.setFill(cycleGrad);
root.getChildren().add(roundRect);
primaryStage.setScene(scene);
primaryStage.show();
}
Figure 14-6 displays the various types of colorized fills that can be applied to
shapes.
Figure 14-6 . Color shapes
How It Works
 
 
Search WWH ::




Custom Search