Java Reference
In-Depth Information
Ease In
An EASE IN interpolator initially accelerates the rate of change in the target
value until a constant rate is achieved, then maintains that constant rate of
change. This is analogous to a vehicle accelerating after stopping at a traffic sig-
nal and then reaching the speed limit; then, it maintains the speed limit.
x => 1000 tween Interpolator.EASEIN
In the JavaFX implementation, the acceleration phase is during the first 20 per-
cent of the time period.
Ease Out
An EASE OUT interpolator is the opposite of the ease in interpolator. It initially
starts with a constant rate of change; then, toward the end of the time period, it
decelerates. This is analogous to a vehicle operating at the speed limit, then
applying the brakes as it comes to a traffic light.
x => 1000 tween Interpolator.EASEOUT
In the JavaFX implementation, the deceleration phase is during the last 20 per-
cent of the time period.
Ease Both
An EASE BOTH interpolator is the combination of ease in and ease out. The rate
of change increases until a constant rate of change is achieved, then near the end
of the time period, the rate of change decelerates. This is similar to a vehicle
accelerating from one traffic signal to the speed limit, travelling at a constant
speed, then braking and decelerating as it approaches the next traffic signal.
x => 1000 tween Interpolator.LINEAR
In the JavaFX implementation, the acceleration phase is the first 20 percent of
the time period and the deceleration phase is during the last 20 percent of the
time period.
Spline
A SPLINE interpolator uses a cubic spline shape to dictate the acceleration and
deceleration phases over the time period. SPLINE() returns an interpolator based
on the control points that are specified as parameters to the SPLINE function. The
anchor points are statically defined as (0.0, 0.0) and (1.0, 1.0). The control points
range in value from 0.0 to 1.0.
Search WWH ::




Custom Search