python-lottie  0.7.0+devd020110
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.animation.PointDisplacer Class Reference
Inheritance diagram for lottie.utils.animation.PointDisplacer:
[legend]

Public Member Functions

def __init__ (self, time_start, time_end, n_frames)
 
def animate_point (self, prop)
 
def animate_bezier (self, prop)
 
def frame_time (self, f)
 

Public Attributes

 time_start
 When the animation shall start. More...
 
 time_end
 When the animation shall end. More...
 
 n_frames
 Number of frames in the animation. More...
 
 time_delta
 Length of a frame. More...
 

Detailed Description

Definition at line 196 of file animation.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.PointDisplacer.__init__ (   self,
  time_start,
  time_end,
  n_frames 
)
Parameters
time_startWhen the animation shall start
time_endWhen the animation shall end
n_framesNumber of frames in the animation

Definition at line 197 of file animation.py.

Member Function Documentation

◆ animate_bezier()

def lottie.utils.animation.PointDisplacer.animate_bezier (   self,
  prop 
)

Definition at line 221 of file animation.py.

◆ animate_point()

def lottie.utils.animation.PointDisplacer.animate_point (   self,
  prop 
)

Definition at line 212 of file animation.py.

◆ frame_time()

def lottie.utils.animation.PointDisplacer.frame_time (   self,
  f 
)

Member Data Documentation

◆ n_frames

lottie.utils.animation.PointDisplacer.n_frames

Number of frames in the animation.

Definition at line 208 of file animation.py.

◆ time_delta

lottie.utils.animation.PointDisplacer.time_delta

Length of a frame.

Definition at line 210 of file animation.py.

◆ time_end

lottie.utils.animation.PointDisplacer.time_end

When the animation shall end.

Definition at line 206 of file animation.py.

◆ time_start

lottie.utils.animation.PointDisplacer.time_start

When the animation shall start.

Definition at line 204 of file animation.py.


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