---
title: "add_spline method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.builder/animationsplinebuilder/add_spline/"
product: "Aspose.SVG for Python via .NET API References"
---


## add_spline {#float-float-float-float}

Adds a cubic Bézier curve to the animation spline.


### Returns 


The current instance of AnimationSplineBuilder for method chaining.


```python
def add_spline(self, x1, y1, x2, y2):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x1 | float | The x-coordinate of the first control point. |
| y1 | float | The y-coordinate of the first control point. |
| x2 | float | The x-coordinate of the second control point. |
| y2 | float | The y-coordinate of the second control point. |



### See Also
* module [`aspose.svg.builder`](../../)
* class [`AnimationSplineBuilder`](/svg/python-net/aspose.svg.builder/animationsplinebuilder)
