Adding color effects
A whole range of color effects produces results similar to the Instagram filters from Instagram. In upcoming sections, we will look at the following color effects:
ColorAdjust
ColorInput
SepiaTone
Bloom
Glow
Using ColorAdjust
The ColorAdjust
effect allows us to changethe following properties of any node (usually, it is applied to images):
- Hue
- Brightness
- Contrast
- Saturation
Refer to the following screenshot:

You can really only see how it works in action, so I advise you to run the following sample and try the corresponding controls:
// chapter8/colors/ColorAdjustDemo public void start(Stage primaryStage) { // you can use any local image here, I've just provided web one to simplify project stucture ImageView iv = new ImageView("https://raw.githubusercontent.com/sgrinev/mastering-javafx-9-10-book/master/resources/sample.jpg"); iv.setFitHeight(240); iv.setFitWidth(240); ColorAdjust ca = new ColorAdjust(); iv.setEffect(ca); VBox root = new VBox(10); for (DoubleProperty...