Class AnimationSplineBuilder

Class AnimationSplineBuilder

Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)

A builder class for constructing animation timing functions using cubic Bézier curves. This class allows for the definition of one or more cubic Bézier curves, each specified by two control points. The resulting string can be used in CSS animations or transitions to control the pace of the animation.

[ComVisible(true)]
public class AnimationSplineBuilder

Inheritance

object AnimationSplineBuilder

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

AnimationSplineBuilder()

public AnimationSplineBuilder()

Methods

AddSpline(double, double, double, double)

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

public AnimationSplineBuilder AddSpline(double x1, double y1, double x2, double y2)

Parameters

x1 double

The x-coordinate of the first control point.

y1 double

The y-coordinate of the first control point.

x2 double

The x-coordinate of the second control point.

y2 double

The y-coordinate of the second control point.

Returns

AnimationSplineBuilder

The current instance of AnimationSplineBuilder for method chaining.

Build()

Builds the animation spline value as a string.

public string Build()

Returns

string

A string representation of the animation spline, suitable for use in CSS.

 English