add_spline method

add_spline

Adds a cubic Bézier curve to the animation spline.

Returns

The current instance of AnimationSplineBuilder for method chaining.

def add_spline(self, x1, y1, x2, y2):
    ...
ParameterTypeDescription
x1floatThe x-coordinate of the first control point.
y1floatThe y-coordinate of the first control point.
x2floatThe x-coordinate of the second control point.
y2floatThe y-coordinate of the second control point.

See Also