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: common conditional effect
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 |