Java Reference
In-Depth Information
override var onMouseReleased = function(me : MouseEvent)
: Void {
me.node.effect = null;
}
Bloom
Very similar to
Glow
, instead of operating on the entire image, the
Bloom
effect
focuses on the brighter aspects of an image and makes them appear to glow. The
primary instance variable associated with
Bloom
is called
threshold
and can be
assigned a value between 0 and 1. Here's how it might be applied to a sample
image with embedded text:
Group {
effect: Bloom { threshold: .9 }
content: [
ImageView {
image: Image {
width: 250, height: 166
url: "{__DIR__}flower.jpg"
}
},
Text {
font: Font {
size: 28
embolden: true
}
x: 70, y: 22
content: "Bloom .9"
fill: Color.WHITE
}
]
}
Figure 6.25 depicts three separate images and the subtle differences that result as
the
Glow
and
Bloom
effects are utilized. The first image is rendered with no effects;
the second includes a
Glow
effect and the third a
Bloom
effect. Again, the original
images are in color. Rendering them in grayscale here may further reduce the details.
Figure 6.25
Applying Glow and Bloom Effects to an Image
Search WWH ::
Custom Search