new KeyValue(adjust.brightnessProperty(), adjustment)));
timeline.play();
}
public static void brightnessUnadjust(Node node) {
ColorAdjust effect = (ColorAdjust) node.getEffect();
Timeline timeline = new Timeline(new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC * 0.7),
new KeyValue(effect.brightnessProperty(), 0.0)));
timeline.setOnFinished(ev -> node.setCache(false));
timeline.play();
}