python-lottie
0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
|
An animatable property that holds a Color. More...
Static Public Attributes | |
keyframe_type = OffsetKeyframe | |
Static Public Attributes inherited from lottie.objects.properties.AnimatableMixin | |
keyframe_type = Keyframe | |
Additional Inherited Members | |
Public Member Functions inherited from lottie.objects.properties.AnimatableMixin | |
def | __init__ (self, value=None) |
def | clear_animation (self, value) |
Sets a fixed value, removing animated keyframes. More... | |
def | add_keyframe (self, time, value, interp=easing.Linear(), *args, end=None, **kwargs) |
def | get_value (self, time=0) |
Returns the value of the property at the given frame/time. More... | |
def | to_dict (self) |
def | __repr__ (self) |
def | __str__ (self) |
def | merge_keyframes (cls, items, conversion) |
def | load (cls, lottiedict) |
def | average (self, value, end, value_map=lambda v:v) |
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) |
def | __str__ (self) |
Public Member Functions inherited from lottie.objects.base.LottieObjectMeta | |
def | __new__ (cls, name, bases, attr) |
Public Attributes inherited from lottie.objects.properties.AnimatableMixin | |
value | |
Non-animated value. More... | |
property_index | |
Property index. More... | |
animated | |
Whether it's animated. More... | |
keyframes | |
Keyframe list. More... | |
expression | |
Expression. More... | |
slot_id | |
Slot name. More... | |
An animatable property that holds a Color.
Lottie name | Type | Description | Attribute |
---|---|---|---|
k | Color | Non-animated value. | value |
ix | int | Property index. | property_index |
a | 0-1 int | Whether it's animated. | animated |
k | list of OffsetKeyframe | Keyframe list. | keyframes |
x | str | Expression. | expression |
sid | str | Slot name. | slot_id |
Definition at line 570 of file properties.py.
|
static |
Definition at line 574 of file properties.py.