python-lottie
0.7.0+dev418bd09
A framework to work with lottie files and telegram animated stickers (tgs)
|
Given a displacer and a function that returns a factor for a point, multiplies the effect of the displacer by the factor. More...
Public Member Functions | |
def | __init__ (self, displacer, dampener) |
def | time_start (self) |
def | n_frames (self) |
def | frame_time (self, f) |
![]() | |
def | __init__ (self, time_start, time_end, n_frames) |
def | animate_point (self, prop) |
def | animate_bezier (self, prop) |
Public Attributes | |
displacer | |
dampener | |
![]() | |
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... | |
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.
def lottie.utils.animation.DisplacerDampener.__init__ | ( | self, | |
displacer, | |||
dampener | |||
) |
Definition at line 495 of file animation.py.
def lottie.utils.animation.DisplacerDampener.frame_time | ( | self, | |
f | |||
) |
Reimplemented from lottie.utils.animation.PointDisplacer.
Definition at line 512 of file animation.py.
def lottie.utils.animation.DisplacerDampener.n_frames | ( | self | ) |
Definition at line 509 of file animation.py.
def lottie.utils.animation.DisplacerDampener.time_start | ( | self | ) |
Definition at line 500 of file animation.py.
lottie.utils.animation.DisplacerDampener.dampener |
Definition at line 497 of file animation.py.
lottie.utils.animation.DisplacerDampener.displacer |
Definition at line 496 of file animation.py.