Skip to content

Easing.CubicBezier method

Creates a CSS-style cubic-bezier easing with control points (x1, y1) and (x2, y2) between (0, 0) and (1, 1); x1 and x2 are clamped to [0, 1].

public static Func<double, double> CubicBezier(double x1, double y1, double x2, double y2)