Image img1 = new Image("https://logoeps.com/wp-content/uploads/2011/06/java-logo-vector.png"); Image img2 = new Image("https://logoeps.com/wp-content/uploads/2011/06/java-logo-vector.png"); ImageView imgview1 = new ImageView(img1); ImageView imgview2 = new ImageView(img2); Text text1 = new Text(); Text text2 = new Text(); text1.setText("ColorAdjust Effect Applied"); text2.setText("ColorAdjust Effect Not Applied"); text1.setX(150); text1.setY(400); text2.setX(400); text2.setY(400); text1.setFont(Font.font("Courier 10 Pitch", FontWeight.BOLD, FontPosture.REGULAR,16)); text2.setFont(Font.font("Courier 10 Pitch",FontWeight.BOLD,FontPosture.REGULAR,16)); text1.setFill(Color.RED); text2.setFill(Color.RED); text1.setStroke(Color.BLACK); text2.setStroke(Color.BLACK); text1.setStrokeWidth(0.2); text2.setStrokeWidth(0.2); imgview1.setX(50); imgview1.setY(0); imgview2.setX(350); imgview2.setY(0); ColorAdjust c = new ColorAdjust(); // creating the instance of the ColorAdjust effect. c.setBrightness(0.2); // setting the brightness of the color. c.setContrast(0.1); // setting the contrast of the color c.setHue(0.3); // setting the hue of the color c.setSaturation(0.45); // setting the hue of the color. imgview1.setEffect(c); //applying effect on the image //ColorInput ColorInput color = new ColorInput(); color.setPaint(Color.RED); color.setHeight(100); color.setWidth(100); color.setX(140); color.setY(90); Rectangle rect = new Rectangle(); rect.setEffect(color); Group root1 = new Group(); root1.getChildren().add(rect); root1.setLayoutX(550); root1.setLayoutY(0); //ImageInput Image img = new Image("https://static.javatpoint.com/jogl/images/jogl-3d-triangle.gif"); ImageInput imginput = new ImageInput(); Rectangle rect1 = new Rectangle(); imginput.setSource(img); imginput.setX(20); imginput.setY(100); Group root2 = new Group(); rect1.setEffect(imginput); root2.getChildren().add(rect1); root2.setLayoutX(800); root2.setLayoutY(0); //Blend Effect Circle circle = new Circle(150,200,120); circle.setFill(Color.RED); Blend blend = new Blend(); ColorInput color1 = new ColorInput(70, 20, 160, 150, Color.LIMEGREEN); blend.setTopInput(color1); blend.setMode(BlendMode.ADD); circle.setEffect(blend); Group root3 = new Group(circle); root3.setLayoutX(50); root3.setLayoutY(450); //Bloom Efeect Rectangle rect3= new Rectangle(60,50,150,200); Rectangle rect2 = new Rectangle(325,50,150,200); rect3.setFill(Color.GREEN); rect3.setStroke(Color.BLACK); rect3.setStrokeWidth(5); rect2.setFill(Color.GREEN); rect2.setStroke(Color.BLACK); rect2.setStrokeWidth(5); Text text3 = new Text(); Text text4 = new Text(); text3.setText("Effected shape"); text4.setText("Original shape"); text3.setX(65); text3.setY(300); text4.setX(335); text4.setY(300); text3.setFont(Font.font("Courier 10 Pitch",FontWeight.BOLD,FontPosture.REGULAR,16)); text4.setFont(Font.font("Courier 10 Pitch",FontWeight.BOLD,FontPosture.REGULAR,16)); text3.setFill(Color.RED); text4.setFill(Color.RED); text3.setStroke(Color.BLACK); text4.setStroke(Color.BLACK); text3.setStrokeWidth(0.2); text4.setStrokeWidth(0.2); Bloom bloom = new Bloom(); bloom.setThreshold(0.1); rect1.setEffect(bloom); Group root4 = new Group(); root4.getChildren().addAll(rect3,rect2,text3,text4); root4.setLayoutX(300); root4.setLayoutY(450); //Glow Effect ImageView imgview3 = new ImageView(img1); ImageView imgview4 = new ImageView(img2); Text text5 = new Text(); Text text6 = new Text(); text5.setText("Glowing with level 10"); text6.setText("Not Glowing"); text5.setX(60); text5.setY(300); text6.setX(325); text6.setY(300); text5.setFont(Font.font("Courier 10 Pitch",FontWeight.BOLD,FontPosture.REGULAR,16)); text6.setFont(Font.font("Courier 10 Pitch",FontWeight.BOLD,FontPosture.REGULAR,16)); text5.setFill(Color.RED); text6.setFill(Color.RED); text5.setStroke(Color.BLACK); text6.setStroke(Color.BLACK); imgview3.setX(70); imgview3.setY(90); imgview4.setX(300); imgview4.setY(90); Glow glow = new Glow(); glow.setLevel(10); imgview1.setEffect(glow); Group root5 = new Group(); root5.getChildren().addAll(imgview3,imgview4,text5,text6); root5.setLayoutX(800); root5.setLayoutY(0); //BoxBlur Effect Text text7 = new Text(); text7.setText("Welcome to Software Engineering"); text7.setX(100); text7.setY(100); text7.setFont(Font.font("Calibri",FontWeight.BLACK,FontPosture.ITALIC,20)); text7.setFill(Color.RED); text7.setStroke(Color.BLACK); text7.setUnderline(true); BoxBlur b = new BoxBlur(); b.setHeight(5); b.setWidth(2); b.setIterations(1); text7.setEffect(b); Group root6 = new Group(); root6.getChildren().add(text7); root6.setLayoutX(900); root6.setLayoutY(450); //MotionBlur Effect Text text8 = new Text("Welcome to Software Engineering"); text8.setX(30); text8.setY(100); text8.setFont(Font.font("calibri",FontWeight.BOLD,FontPosture.ITALIC,40)); MotionBlur motion = new MotionBlur(); motion.setAngle(20); motion.setRadius(10); text8.setEffect(motion); Group root7 = new Group(); root7.getChildren().addAll(text8); root7.setLayoutX(900); root7.setLayoutY(500); //Reflection Effect Text text9 = new Text(); text9.setFont(Font.font("calibri",FontWeight.BLACK,FontPosture.REGULAR,20)); text9.setText("Welcome to Software Engineering"); text9.setX(90); text9.setY(90); Reflection ref = new Reflection(); ref.setBottomOpacity(0.2); ref.setFraction(12); ref.setTopOffset(10); ref.setTopOpacity(0.2); text9.setEffect(ref); Group root8 = new Group(); root8.getChildren().add(text9); root8.setLayoutX(900); root8.setLayoutY(550); //Shadow Effect Image img3 = new Image("https://www.javatpoint.com/images/logo/jtp_logo.png"); ImageView imgview5 = new ImageView(img3); imgview5.setFitHeight(100); imgview5.setFitWidth(350); imgview5.setX(100); imgview5.setY(100); Shadow shadow = new Shadow(); shadow.setBlurType(BlurType.GAUSSIAN); shadow.setColor(Color.BLACK); shadow.setHeight(30); shadow.setRadius(12); shadow.setWidth(20); imgview5.setEffect(shadow); Group root9 = new Group(); root9.getChildren().add(imgview5); root9.setLayoutX(900); root9.setLayoutY(600); Group root = new Group(); root.getChildren().addAll(imgview1,imgview2,text1,text2,root1,root2,root3,root4,root5,root6,root7,root8,root9); Scene scene = new Scene(root,1500,1000); stage.setScene(scene); stage.setTitle("HomeWork"); stage.show();