python-lottie  0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.ellipse.Ellipse Class Reference

Public Member Functions

def __init__ (self, center, radii, xrot)
 
def point (self, t)
 
def derivative (self, t)
 
def to_bezier (self, anglestart, angle_delta)
 
def from_svg_arc (cls, start, rx, ry, xrot, large, sweep, dest)
 

Public Attributes

 center
 
 radii
 
 xrot
 

Detailed Description

Todo:
Just output a Bezier object

Definition at line 8 of file ellipse.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.ellipse.Ellipse.__init__ (   self,
  center,
  radii,
  xrot 
)
@param center      2D vector, center of the ellipse
@param radii       2D vector, x/y radius of the ellipse
@param xrot        Angle between the main axis of the ellipse and the x axis (in radians)

Definition at line 9 of file ellipse.py.

Member Function Documentation

◆ derivative()

def lottie.utils.ellipse.Ellipse.derivative (   self,
  t 
)

Definition at line 30 of file ellipse.py.

◆ from_svg_arc()

def lottie.utils.ellipse.Ellipse.from_svg_arc (   cls,
  start,
  rx,
  ry,
  xrot,
  large,
  sweep,
  dest 
)

Definition at line 79 of file ellipse.py.

◆ point()

def lottie.utils.ellipse.Ellipse.point (   self,
  t 
)

Definition at line 19 of file ellipse.py.

◆ to_bezier()

def lottie.utils.ellipse.Ellipse.to_bezier (   self,
  anglestart,
  angle_delta 
)

Definition at line 39 of file ellipse.py.

Member Data Documentation

◆ center

lottie.utils.ellipse.Ellipse.center

Definition at line 15 of file ellipse.py.

◆ radii

lottie.utils.ellipse.Ellipse.radii

Definition at line 16 of file ellipse.py.

◆ xrot

lottie.utils.ellipse.Ellipse.xrot

Definition at line 17 of file ellipse.py.


The documentation for this class was generated from the following file: