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

expand all

Profile: desktop, common

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

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicangleNumber0.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/a
 

0.0  
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  
publicradiusNumber10.0

The radius of the blur kernel.

The radius of the blur kernel.

       Min:  0.0
       Max: 63.0
   Default: 10.0
  Identity:  0.0
 

10.0  

Inherited Variables

Function Summary

Inherited Functions

javafx.scene.effect.Effect




Spec-Zone.ru - all specs in one place