python-lottie
0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
def | __init__ (self, origin, range, offset_func, time_start, time_end, n_frames, falloff_exp=1) |
Uses a custom offset function, and applies a falloff to the displacement. More... | |
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) |
def | frame_time (self, f) |
Public Attributes | |
origin | |
range | |
offset_func | |
falloff_exp | |
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... | |
Definition at line 516 of file animation.py.
def lottie.utils.animation.FollowDisplacer.__init__ | ( | self, | |
origin, | |||
range, | |||
offset_func, | |||
time_start, | |||
time_end, | |||
n_frames, | |||
falloff_exp = 1 |
|||
) |
Uses a custom offset function, and applies a falloff to the displacement.
origin | Origin point for the falloff |
range | Radius after which the points will not move |
offset_func | Function returning an offset given a ratio of the time |
time_start | When the animation shall start |
time_end | When the animation shall end |
n_frames | Number of frames in the animation |
falloff_exp | Exponent for the falloff |
Definition at line 517 of file animation.py.
lottie.utils.animation.FollowDisplacer.falloff_exp |
Definition at line 540 of file animation.py.
lottie.utils.animation.FollowDisplacer.offset_func |
Definition at line 539 of file animation.py.
lottie.utils.animation.FollowDisplacer.origin |
Definition at line 537 of file animation.py.
lottie.utils.animation.FollowDisplacer.range |
Definition at line 538 of file animation.py.