cubicBezier

Creates an easing based on the given control x,y pairs, where the anchor points are at [0,0] and [1,1].

Parameters

x1

the first control point x

y1

the first control point y

x2

the second control point x

y2

the second control point y


fun cubicBezier(control1: Point, control2: Point): EasingFunction(source)

Creates an easing based on the given control points, where the anchor points are at [0,0] and [1,1].

Parameters

control1

the first control point

control2

the second control point