Game Development Reference
In-Depth Information
If you read the Scene class documentation, you will notice that there is a method,
.setFill(Color value) , that takes a Color (class or object) value, so let's try that next.
As Figure 4-6 shows, I called the .setFill() off the Scene object named scene , using a
scene.setFill(Color.TRANSPARENT); statement, which NetBeans helps me
construct!
Figure 4-6 . Call the .setFill() method with the Color.TRANSPARENT constant, off the Scene object named scene
Run the application again, to see if the transparency is showing yet. As you can see
in Figure 4-7 , it is not!
 
 
 
Search WWH ::




Custom Search