Companion

object Companion

The companion of CustomTimingCurve.

Functions

Link copied to clipboard
@JvmStatic
fun cubicBezier(point1: Vector2, point2: Vector2): CustomTimingCurve

Creates a cubic Bezier timing curve, defined by two control points point1 and point2. The curve starts at (0, 0) and ends at (1, 1).