python-lottie
0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
def | __init__ (self, time=0, easing_function=None) |
def | jump (self) |
def | jump (self, v) |
def | bezier (self) |
def | lerp_factor (self, ratio) |
def | __str__ (self) |
Public Member Functions inherited from lottie.objects.base.LottieObject | |
def | __init__ (self) |
def | to_dict (self) |
Serializes into a JSON object fit for the Lottie format. More... | |
def | load (cls, lottiedict) |
Loads from a JSON object. More... | |
def | find (self, search, propname="name") |
Recursively searches for child objects with a matching property. More... | |
def | find_all (self, type, predicate=None, include_self=True) |
Find all child objects that match a predicate. More... | |
def | clone (self) |
Returns a copy of the object. More... | |
def | clone_into (self, other) |
Public Member Functions inherited from lottie.objects.base.LottieObjectMeta | |
def | __new__ (cls, name, bases, attr) |
Public Attributes | |
time | |
Start time of keyframe segment. More... | |
in_value | |
Bezier curve easing in value. More... | |
out_value | |
Bezier curve easing out value. More... | |
hold | |
Jump to the end value. More... | |
Lottie name | Type | Description | Attribute |
---|---|---|---|
t | float | Start time of keyframe segment. | time |
i | KeyframeBezierHandle | Bezier curve easing in value. | in_value |
o | KeyframeBezierHandle | Bezier curve easing out value. | out_value |
h | 0-1 int | Jump to the end value. | hold |
Definition at line 117 of file properties.py.
def lottie.objects.properties.Keyframe.__init__ | ( | self, | |
time = 0 , |
|||
easing_function = None |
|||
) |
time | Start time of keyframe segment |
easing_function | Callable that performs the easing |
Definition at line 125 of file properties.py.
def lottie.objects.properties.Keyframe.__str__ | ( | self | ) |
Reimplemented from lottie.objects.base.LottieObject.
Definition at line 163 of file properties.py.
def lottie.objects.properties.Keyframe.bezier | ( | self | ) |
Definition at line 150 of file properties.py.
def lottie.objects.properties.Keyframe.jump | ( | self | ) |
Definition at line 143 of file properties.py.
def lottie.objects.properties.Keyframe.jump | ( | self, | |
v | |||
) |
Definition at line 147 of file properties.py.
def lottie.objects.properties.Keyframe.lerp_factor | ( | self, | |
ratio | |||
) |
Definition at line 160 of file properties.py.
lottie.objects.properties.Keyframe.hold |
Jump to the end value.
Definition at line 137 of file properties.py.
lottie.objects.properties.Keyframe.in_value |
Bezier curve easing in value.
Definition at line 133 of file properties.py.
lottie.objects.properties.Keyframe.out_value |
Bezier curve easing out value.
Definition at line 135 of file properties.py.
lottie.objects.properties.Keyframe.time |
Start time of keyframe segment.
Definition at line 131 of file properties.py.