python-lottie  0.6.8+dev6bb61be
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.properties.ShapePropKeyframe Class Reference

Keyframe holding Bezier objects. More...

Inheritance diagram for lottie.objects.properties.ShapePropKeyframe:
[legend]
Collaboration diagram for lottie.objects.properties.ShapePropKeyframe:
[legend]

Public Member Functions

def __init__ (self, time=0, start=None, end=None, easing_function=None)
 
def interpolated_value (self, ratio, next_start=None)
 
- Public Member Functions inherited from lottie.objects.properties.Keyframe
def __init__ (self, time=0, easing_function=None)
 
def bezier (self)
 
def lerp_factor (self, ratio)
 
def __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
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...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 start
 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...
 
 jump
 Jump to the end value. More...
 

Detailed Description

Keyframe holding Bezier objects.

Lottie JSON
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.   jump
s Bezier or list of Bezier Start value of keyframe segment.   start
e Bezier or list of Bezier End value of keyframe segment.   end

Definition at line 634 of file properties.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.properties.ShapePropKeyframe.__init__ (   self,
  time = 0,
  start = None,
  end = None,
  easing_function = None 
)

Definition at line 643 of file properties.py.

Member Function Documentation

◆ interpolated_value()

def lottie.objects.properties.ShapePropKeyframe.interpolated_value (   self,
  ratio,
  next_start = None 
)

Definition at line 650 of file properties.py.

Member Data Documentation

◆ end

lottie.objects.properties.ShapePropKeyframe.end

End value of keyframe segment.

Definition at line 648 of file properties.py.

◆ start

lottie.objects.properties.ShapePropKeyframe.start

Start value of keyframe segment.

Definition at line 646 of file properties.py.


The documentation for this class was generated from the following file: