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: desktop
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: 1.0 Max: 63.0 Default: 10.0 Identity: n/a10.0 |
Inherited Variables
Function Summary
- public impl_getImpl() : com.sun.scenario.effect.Effect
Inherited Functions
javafx.scene.effect.Effect
- public getAccelType(config: java.awt.GraphicsConfiguration) : java.lang.String
-
Returns a
String
representing the type of hardware acceleration, if any, that is used when applying thisEffect
on the givenGraphicsConfiguration
.Returns a
String
representing the type of hardware acceleration, if any, that is used when applying thisEffect
on the givenGraphicsConfiguration
. This method is intended for informational or debugging purposes only.-
Parameters
- config
-
Returns
- String
- public abstract impl_getImpl() : com.sun.scenario.effect.Effect