summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_cubic_bezier_interpolator.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore/efl_cubic_bezier_interpolator.eo')
-rw-r--r--src/lib/ecore/efl_cubic_bezier_interpolator.eo26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/lib/ecore/efl_cubic_bezier_interpolator.eo b/src/lib/ecore/efl_cubic_bezier_interpolator.eo
index c6dd144..30614b9 100644
--- a/src/lib/ecore/efl_cubic_bezier_interpolator.eo
+++ b/src/lib/ecore/efl_cubic_bezier_interpolator.eo
@@ -1,19 +1,31 @@
1class @beta Efl.Cubic_Bezier_Interpolator extends Efl.Object implements Efl.Interpolator 1class @beta Efl.Cubic_Bezier_Interpolator extends Efl.Object implements Efl.Interpolator
2{ 2{
3 [[Efl cubic_bezier interpolator class]] 3 [[Cubic Bezier interpolator. It starts slow, then moves quickly and then slows down
4 again before stopping.
5
6 The exact shape of the mapping curve can be modified through the @.control_points
7 property.
8 ]]
4 data: Efl_Cubic_Bezier_Interpolator_Data; 9 data: Efl_Cubic_Bezier_Interpolator_Data;
5 methods { 10 methods {
6 @property factors { 11 @property control_points {
7 [[Factors property]] 12 [[Cubic Bezier curves are described by 4 2D control points
13 (https://en.wikipedia.org/wiki/B%C3%A9zier_curve).
14 For each control point, the X coordinate is an input value and the Y coordinate is the
15 corresponding output value.
16 The first one, P0, is set to $[(0,0)]: The input $[0.0] is mapped to the $[0.0] output.
17 The last one, P3, is set to $[(1,1)]: The input $[1.0] is mapped to the $[1.0] output.
18 The other two control points can be set through this property and control the shape of
19 the curve. Note that the control points do not need to be in the $[0...1] range, and
20 neither do the output values of the curve.
21 ]]
8 set { 22 set {
9 } 23 }
10 get { 24 get {
11 } 25 }
12 values { 26 values {
13 factor1: double; [[First factor of the interpolation function.]] 27 p1: Eina.Vector2; [[P1 control point.]]
14 factor2: double; [[Second factor of the interpolation function.]] 28 p2: Eina.Vector2; [[P2 control point.]]
15 factor3: double; [[Third factor of the interpolation function.]]
16 factor4: double; [[Fourth factor of the interpolation function.]]
17 } 29 }
18 } 30 }
19 } 31 }