There are three different types of blur you can use to distort parts of the UI: GaussianBlur, MotionBlur, and BoxBlur:
public void start(Stage primaryStage) { Button btn = new Button("Gaussian Blur"); btn.setEffect(new GaussianBlur(3)); Button btn2 = new Button("Motion Blur"); btn2.setEffect(new MotionBlur(0, 10)); Button btn3 = new Button("Box Blur"); btn3.setEffect(new BoxBlur()); VBox vbox = new VBox(30, btn, btn2, btn3); vbox.setPadding(new Insets(50)); primaryStage.setTitle("Blurry Demo"); primaryStage.setScene(new Scene(vbox, 300, 250)); primaryStage.show();}
As you can see in the following screenshot, the MotionBlur effect tried to imitate the look of a moving object. GaussianBlur and BoxBlur are pretty ...