Overview
A high-level effect that makes brighter portions of the input image appear to glow, based on a configurable threshold.
the code:
import javafx.scene.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Group {
effect: Bloom {}
cache: true
content: [
Rectangle {
x: 10 y: 10
width: 160
height: 80
fill: Color.DARKBLUE
},
Text {
x: 25 y: 65
content: "Bloom!"
fill: Color.YELLOW
font: Font.font(null, FontWeight.BOLD, 36);
},
]
}
produces:
Profile: desktop
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | input | Effect | ![]() | ![]() | ![]() | null |
The input for this ![]() The input for this |
public | threshold | Number | ![]() | ![]() | ![]() | 0.3 |
The threshold value controls the minimum luminosity value of the pixels that will be made to glow. ![]() The threshold value controls the minimum luminosity value of the pixels that will be made to glow. Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a0.3 |
Inherited Variables
Function Summary
- public impl_getImpl() : com.sun.scenario.effect.Effect
Inherited Functions
javafx.scene.effect.Effect
- public getAccelType(config: java.lang.Object) : 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 impl_add(node: Node) : Void
- public abstract impl_getImpl() : com.sun.scenario.effect.Effect
- public impl_remove(node: Node) : Void