python-lottie
0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
|
Keyframe for MultiDimensional values. More...
Public Member Functions | |
def | __init__ (self, time=0, value=None, easing_function=None, end=None) |
def | start (self) |
def | start (self, v) |
def | interpolated_value (self, ratio, next_value=None) |
def | interpolated_tangent_angle (self, ratio, next_value=None) |
def | __repr__ (self) |
Public Member Functions inherited from lottie.objects.properties.Keyframe | |
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 | |
value | |
Start value of keyframe segment. More... | |
end | |
End value of keyframe segment. More... | |
Public Attributes inherited from lottie.objects.properties.Keyframe | |
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... | |
Keyframe for MultiDimensional values.
Imagine a quadratic bezier, with starting point at (0, 0) and end point at (1, 1).
out_value
and in_value
are the other two handles for a quadratic bezier, expressed as absolute values in this 0-1 space.
See also https://cubic-bezier.com/
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 |
s | NVector | Start value of keyframe segment. | value |
e | NVector | End value of keyframe segment. | end |
Definition at line 168 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.__init__ | ( | self, | |
time = 0 , |
|||
value = None , |
|||
easing_function = None , |
|||
end = None |
|||
) |
Definition at line 187 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.__repr__ | ( | self | ) |
Definition at line 232 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.interpolated_tangent_angle | ( | self, | |
ratio, | |||
next_value = None |
|||
) |
Definition at line 222 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.interpolated_value | ( | self, | |
ratio, | |||
next_value = None |
|||
) |
Definition at line 203 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.start | ( | self | ) |
Definition at line 195 of file properties.py.
def lottie.objects.properties.OffsetKeyframe.start | ( | self, | |
v | |||
) |
Definition at line 199 of file properties.py.
lottie.objects.properties.OffsetKeyframe.end |
End value of keyframe segment.
Definition at line 192 of file properties.py.
lottie.objects.properties.OffsetKeyframe.value |
Start value of keyframe segment.
Definition at line 190 of file properties.py.