python-lottie  0.6.10+dev42a5126
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.Gradient Class Reference
Inheritance diagram for lottie.objects.shapes.Gradient:
Collaboration diagram for lottie.objects.shapes.Gradient:

Public Member Functions

def __init__ (self, colors=[])
- 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

 Fill Opacity. More...
 Gradient Start Point. More...
 Gradient End Point. More...
 Gradient Type. More...
 Gradient Highlight Length. More...
 Highlight Angle. More...
 Gradient Colors. More...

Detailed Description

Lottie JSON
Lottie name Type Description Attribute
s MultiDimensional Gradient Start Point.   start_point
e MultiDimensional Gradient End Point.   end_point
t GradientType Gradient Type.   gradient_type
h Value Gradient Highlight Length.   highlight_length
a Value Highlight Angle.   highlight_angle
g GradientColors Gradient Colors.   colors

Definition at line 535 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.Gradient.__init__ (   self,
  colors = [] 

Reimplemented in lottie.objects.shapes.GradientStroke, and lottie.objects.shapes.GradientFill.

Definition at line 545 of file

Member Data Documentation

◆ colors


Gradient Colors.

Definition at line 559 of file

◆ end_point


Gradient End Point.

Definition at line 551 of file

◆ gradient_type


Gradient Type.

Definition at line 553 of file

◆ highlight_angle


Highlight Angle.

Only if type is Radial

Definition at line 557 of file

◆ highlight_length


Gradient Highlight Length.

Only if type is Radial

Definition at line 555 of file

◆ opacity


Fill Opacity.

Definition at line 547 of file

◆ start_point


Gradient Start Point.

Definition at line 549 of file

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