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

Bezier handle for keyframe interpolation. More...

Inheritance diagram for lottie.objects.easing.KeyframeBezierHandle:
[legend]
Collaboration diagram for lottie.objects.easing.KeyframeBezierHandle:
[legend]

Public Member Functions

def __init__ (self, x=0, y=0)
 
- 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...
 
def __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 x
 x position of the handle. More...
 
 y
 y position of the handle. More...
 

Detailed Description

Bezier handle for keyframe interpolation.

Lottie JSON
Lottie name Type Description Attribute
x float or list of float x position of the handle.   x
y float or list of float y position of the handle.   y

Definition at line 6 of file easing.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.easing.KeyframeBezierHandle.__init__ (   self,
  x = 0,
  y = 0 
)

Definition at line 15 of file easing.py.

Member Data Documentation

◆ x

lottie.objects.easing.KeyframeBezierHandle.x

x position of the handle.

This represents the change in time of the keyframe

Definition at line 18 of file easing.py.

◆ y

lottie.objects.easing.KeyframeBezierHandle.y

y position of the handle.

This represents the change in value of the keyframe

Definition at line 21 of file easing.py.


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