python-lottie
0.7.0+dev351ce82
A framework to work with lottie files and telegram animated stickers (tgs)
|
Classes | |
class | PointDisplacer |
class | SineDisplacer |
class | MultiSineDisplacer |
class | DepthRotationAxis |
class | DepthRotation |
class | DepthRotationDisplacer |
class | EnvelopeDeformation |
class | DisplacerDampener |
Given a displacer and a function that returns a factor for a point, multiplies the effect of the displacer by the factor. More... | |
class | FollowDisplacer |
Functions | |
def | shake (position_prop, x_radius, y_radius, start_time, end_time, n_frames, interp=easing.Linear()) |
def | rot_shake (rotation_prop, angles, start_time, end_time, n_frames) |
def | spring_pull (position_prop, point, start_time, end_time, falloff=15, oscillations=7) |
def | follow_path (position_prop, bezier, start_time, end_time, n_keyframes, reverse=False, offset=NVector(0, 0), start_t=0, rotation_prop=None, rotation_offset=0) |
def | generate_path_appear (bezier, appear_start, appear_end, n_keyframes, reverse=False) |
def | generate_path_disappear (bezier, disappear_start, disappear_end, n_keyframes, reverse=False) |
def | generate_path_segment (bezier, appear_start, appear_end, disappear_start, disappear_end, n_keyframes, reverse=False) |
def lottie.utils.animation.follow_path | ( | position_prop, | |
bezier, | |||
start_time, | |||
end_time, | |||
n_keyframes, | |||
reverse = False , |
|||
offset = NVector(0, 0) , |
|||
start_t = 0 , |
|||
rotation_prop = None , |
|||
rotation_offset = 0 |
|||
) |
Definition at line 58 of file animation.py.
def lottie.utils.animation.generate_path_appear | ( | bezier, | |
appear_start, | |||
appear_end, | |||
n_keyframes, | |||
reverse = False |
|||
) |
Definition at line 86 of file animation.py.
def lottie.utils.animation.generate_path_disappear | ( | bezier, | |
disappear_start, | |||
disappear_end, | |||
n_keyframes, | |||
reverse = False |
|||
) |
Definition at line 119 of file animation.py.
def lottie.utils.animation.generate_path_segment | ( | bezier, | |
appear_start, | |||
appear_end, | |||
disappear_start, | |||
disappear_end, | |||
n_keyframes, | |||
reverse = False |
|||
) |
Definition at line 151 of file animation.py.
def lottie.utils.animation.rot_shake | ( | rotation_prop, | |
angles, | |||
start_time, | |||
end_time, | |||
n_frames | |||
) |
Definition at line 33 of file animation.py.
def lottie.utils.animation.shake | ( | position_prop, | |
x_radius, | |||
y_radius, | |||
start_time, | |||
end_time, | |||
n_frames, | |||
interp = easing.Linear() |
|||
) |
Definition at line 10 of file animation.py.
def lottie.utils.animation.spring_pull | ( | position_prop, | |
point, | |||
start_time, | |||
end_time, | |||
falloff = 15 , |
|||
oscillations = 7 |
|||
) |
Definition at line 43 of file animation.py.