May 2018
Intermediate to advanced
268 pages
6h 43m
English
The InnerShadow effect imitates external lighting by drawing a shadow inside the node:

Similar to DropShadow, this effect is controlled by corresponding class constructor parameters. Take a look at the following code:
// chapter8/basiceffects/InnerShadowDemo.javaCircle red = new Circle(50, Color.RED);red.setEffect(new InnerShadow());Circle yellow = new Circle(50, Color.YELLOW);yellow.setEffect(new InnerShadow( 10, // shadow radius 10, 0, // x,y offset Color.BLACK));Circle green = new Circle(50, Color.GREEN);green.setEffect(new InnerShadow(10, 10, 10, Color.BLACK));
Read now
Unlock full access