python-lottie  0.6.8+dev6bb61be
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:
[legend]
Collaboration diagram for lottie.objects.shapes.Gradient:
[legend]

Public Member Functions

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

 opacity
 Fill Opacity. More...
 
 start_point
 Gradient Start Point. More...
 
 end_point
 Gradient End Point. More...
 
 gradient_type
 Gradient Type. More...
 
 highlight_length
 Gradient Highlight Length. More...
 
 highlight_angle
 Highlight Angle. More...
 
 colors
 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 533 of file shapes.py.

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 543 of file shapes.py.

Member Data Documentation

◆ colors

lottie.objects.shapes.Gradient.colors

Gradient Colors.

Definition at line 557 of file shapes.py.

◆ end_point

lottie.objects.shapes.Gradient.end_point

Gradient End Point.

Definition at line 549 of file shapes.py.

◆ gradient_type

lottie.objects.shapes.Gradient.gradient_type

Gradient Type.

Definition at line 551 of file shapes.py.

◆ highlight_angle

lottie.objects.shapes.Gradient.highlight_angle

Highlight Angle.

Only if type is Radial

Definition at line 555 of file shapes.py.

◆ highlight_length

lottie.objects.shapes.Gradient.highlight_length

Gradient Highlight Length.

Only if type is Radial

Definition at line 553 of file shapes.py.

◆ opacity

lottie.objects.shapes.Gradient.opacity

Fill Opacity.

Definition at line 545 of file shapes.py.

◆ start_point

lottie.objects.shapes.Gradient.start_point

Gradient Start Point.

Definition at line 547 of file shapes.py.


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