Overview
A motion blur effect using a Gaussian convolution kernel, with a configurable radius and angle.
the code:
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Text {
effect: MotionBlur { radius: 15 angle: -30 }
x: 20 y: 100
content: "Motion"
fill: Color.RED
font: Font.font(null, FontWeight.BOLD, 60);
}
produces:
Profile: common conditional effect
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | angle | Number | 0.0 |
The angle of the motion effect, in degrees. The angle of the motion effect, in degrees. Min: n/a Max: n/a Default: 0.0 Identity: n/a0.0 |
|||
public | input | Effect | null |
The input for this The input for this |
|||
public | radius | Number | 10.0 |
The radius of the blur kernel. The radius of the blur kernel. Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.010.0 |