python-lottie  0.6.11+devcecd248
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.animation.DisplacerDampener Class Reference

Given a displacer and a function that returns a factor for a point, multiplies the effect of the displacer by the factor. More...

Inheritance diagram for lottie.utils.animation.DisplacerDampener:
[legend]
Collaboration diagram for lottie.utils.animation.DisplacerDampener:
[legend]

Public Member Functions

def __init__ (self, displacer, dampener)
 
def time_start (self)
 
def n_frames (self)
 
def frame_time (self, f)
 
- Public Member Functions inherited from lottie.utils.animation.PointDisplacer
def __init__ (self, time_start, time_end, n_frames)
 
def animate_point (self, prop)
 
def animate_bezier (self, prop)
 

Public Attributes

 displacer
 
 dampener
 
- Public Attributes inherited from lottie.utils.animation.PointDisplacer
 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

Given a displacer and a function that returns a factor for a point, multiplies the effect of the displacer by the factor.

Definition at line 490 of file animation.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.DisplacerDampener.__init__ (   self,
  displacer,
  dampener 
)

Definition at line 495 of file animation.py.

Member Function Documentation

◆ frame_time()

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

Reimplemented from lottie.utils.animation.PointDisplacer.

Definition at line 512 of file animation.py.

◆ n_frames()

def lottie.utils.animation.DisplacerDampener.n_frames (   self)

Definition at line 509 of file animation.py.

◆ time_start()

def lottie.utils.animation.DisplacerDampener.time_start (   self)

Definition at line 500 of file animation.py.

Member Data Documentation

◆ dampener

lottie.utils.animation.DisplacerDampener.dampener

Definition at line 497 of file animation.py.

◆ displacer

lottie.utils.animation.DisplacerDampener.displacer

Definition at line 496 of file animation.py.


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