Bloom and Glow

Both Bloom and Glow provide a glowing effect based on the color of the Node:

The difference is pretty subtle. You can try to spot it yourself by toying with the code:

// chapter8/colors/BloomGlowDemo.javapublic void start(Stage primaryStage) {    Function<String,Text> makeLabel = (String name)-> {        Text label = new Text(name);        label.setFill(Color.LIGHTBLUE);        label.setFont(Font.font("Verdana", FontWeight.BOLD, 40));        return label;    };
    Text label = makeLabel.apply("JavaFX Bloom");    label.setEffect(new Bloom(0.8));    Text label2 = makeLabel.apply("JavaFX Glow");    label2.setEffect(new Glow(0.8)); Text label3 = makeLabel.apply("JavaFX Text"); ...

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.