2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Accelerate_Interpolator extends Efl.Object implements Efl.Interpolator
|
2017-09-12 01:49:40 -07:00
|
|
|
{
|
2019-11-05 11:26:14 -08:00
|
|
|
[[Accelerated interpolator. It starts slow and accelerates, stopping abruptly when
|
|
|
|
it reaches $[1.0].
|
2017-09-12 01:49:40 -07:00
|
|
|
|
2019-11-05 11:26:14 -08:00
|
|
|
Internally it uses the first half of a sinus rise (from 0 to 0.5) and the steepness
|
|
|
|
can be customized.
|
2017-09-12 01:49:40 -07:00
|
|
|
]]
|
2018-11-23 04:26:00 -08:00
|
|
|
data: Efl_Accelerate_Interpolator_Data;
|
2017-09-12 01:49:40 -07:00
|
|
|
methods {
|
2019-11-05 11:26:14 -08:00
|
|
|
@property slope {
|
|
|
|
[[Customize the acceleration effect.]]
|
2017-09-12 01:49:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-11-05 11:26:14 -08:00
|
|
|
slope: double; [[How steep is the effect. $[0] performs a linear interpolation,
|
|
|
|
$[1] corresponds to a sinus function and higher numbers produce
|
|
|
|
an increasingly steep effect.]]
|
2017-09-12 01:49:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Interpolator.interpolate;
|
|
|
|
}
|
|
|
|
}
|