Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

expand all

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicinputEffectnull

The input for this Effect.

The input for this Effect. If set to null, or left unspecified, a graphical image of the Node to which the Effect is attached will be used as the input.

null  
publicthresholdNumber0.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/a
 

0.3  

Inherited Variables

Function Summary

Inherited Functions

javafx.scene.effect.Effect