python-lottie
0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
def | __init__ (self, wavelength, amplitude, time_start, time_end, n_frames, speed=1, axis=90) |
Displaces points as if they were following a sine wave. More... | |
![]() | |
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 | |
wavelength | |
amplitude | |
speed_f | |
axis | |
![]() | |
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... | |
Definition at line 250 of file animation.py.
def lottie.utils.animation.SineDisplacer.__init__ | ( | self, | |
wavelength, | |||
amplitude, | |||
time_start, | |||
time_end, | |||
n_frames, | |||
speed = 1 , |
|||
axis = 90 |
|||
) |
Displaces points as if they were following a sine wave.
wavelength | Distance between consecutive peaks |
amplitude | Distance from a peak to the original position |
time_start | When the animation shall start |
time_end | When the animation shall end |
n_frames | Number of keyframes to add |
speed | Number of peaks a point will go through in the given time If negative, it will go the other way |
axis | Wave peak direction |
Definition at line 251 of file animation.py.
lottie.utils.animation.SineDisplacer.amplitude |
Definition at line 276 of file animation.py.
lottie.utils.animation.SineDisplacer.axis |
Definition at line 278 of file animation.py.
lottie.utils.animation.SineDisplacer.speed_f |
Definition at line 277 of file animation.py.
lottie.utils.animation.SineDisplacer.wavelength |
Definition at line 275 of file animation.py.