CubicBezierEasing
An Easing defined by a cubic bezier curve.
The control points (x1, y1) and (x2, y2) define the shape of the curve, where x represents time and y represents progress. The start point (0, 0) and end point (1, 1) are implicit.
Delegates to Android's PathInterpolator for efficient native evaluation.
// Material Design emphasized easing
val emphasized = CubicBezierEasing(0.2f, 0.0f, 0.0f, 1.0f)Content copied to clipboard
Parameters
x1
X coordinate of the first control point. Must be in 0, 1.
y1
Y coordinate of the first control point.
x2
X coordinate of the second control point. Must be in 0, 1.
y2
Y coordinate of the second control point.