Overview
A high-level effect that renders a shadow inside the edges of the given content with the specified color, radius, and offset.
the code:
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Text {
effect: InnerShadow { offsetX: 4 offsetY: 4 }
x: 20 y: 100
content: "InnerShadow"
fill: Color.YELLOW
font: Font.font(null, FontWeight.BOLD, 80);
}produces:

Profile: common conditional effect
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | blurType | BlurType | ![]() | ![]() | ![]() | THREE_PASS_BOX |
The algorithm used to blur the shadow.
The algorithm used to blur the shadow.
Min: n/a
Max: n/a
Default: BlurType.THREE_PASS_BOX
Identity: n/a
THREE_PASS_BOX
|
| public | choke | Number | ![]() | ![]() | ![]() | 0.0 |
The choke of the shadow.
The choke of the shadow.
The choke is the portion of the radius where the contribution of
the source material will be 100%.
The remaining portion of the radius will have a contribution
controlled by the blur kernel.
A choke of
Min: 0.0
Max: 1.0
Default: 0.0
Identity: 0.0
0.0
|
| public | color | Color | ![]() | ![]() | ![]() | BLACK |
The shadow
The shadow
Min: n/a
Max: n/a
Default: Color.BLACK
Identity: n/a
BLACK
|
| public | height | Number | ![]() | ![]() | ![]() | 21.0 |
The vertical size of the shadow blur kernel.
The vertical size of the shadow blur kernel.
This attribute controls the vertical size of the total area over
which the shadow of a single pixel is distributed by the blur algorithm.
Values less than
Min: 0.0
Max: 255.0
Default: 21.0
Identity: <1.0
21.0
|
| public | input | Effect | ![]() | ![]() | ![]() | null |
The input for this
The input for this |
| public | offsetX | Number | ![]() | ![]() | ![]() | 0.0 |
The shadow offset in the x direction, in pixels.
The shadow offset in the x direction, in pixels.
Min: n/a
Max: n/a
Default: 0.0
Identity: 0.0
0.0
|
| public | offsetY | Number | ![]() | ![]() | ![]() | 0.0 |
The shadow offset in the y direction, in pixels.
The shadow offset in the y direction, in pixels.
Min: n/a
Max: n/a
Default: 0.0
Identity: 0.0
0.0
|
| public | radius | Number | ![]() | ![]() | ![]() | 10.0 |
The radius of the shadow blur kernel.
The radius of the shadow blur kernel.
This attribute controls the distance that the shadow is spread
to each side of the source pixels.
Setting the radius is equivalent to setting both the
Min: 0.0
Max: 127.0
Default: 10.0
Identity: 0.0
10.0
|
| public | width | Number | ![]() | ![]() | ![]() | 21.0 |
The horizontal size of the shadow blur kernel.
The horizontal size of the shadow blur kernel.
This attribute controls the horizontal size of the total area over
which the shadow of a single pixel is distributed by the blur algorithm.
Values less than
Min: 0.0
Max: 255.0
Default: 21.0
Identity: <1.0
21.0
|

