Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 10 ■ User InterfaCe DesIgn InteraCtIvIty: event hanDlIng anD ImagIng effeCts


Figure 10-18. Copy and paste the colorAdjust.setHue(-0.9) and logoLayer.setEffect(colorAdjust) Java code in
creditButton


Use your Run ➤ Project work process, and make sure that this 90 percent negative shift around the
color wheel is now turning the logo into a vibrant blue color, which looks good with the rest of your user
interface design. As you can see in Figure 10-19, the Credits Button Control screen now matches up in both
color and drop shadowing effects.

Free download pdf