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

Gradient fill. More...

Inheritance diagram for lottie.objects.shapes.GradientFill:
[legend]
Collaboration diagram for lottie.objects.shapes.GradientFill:
[legend]

Public Member Functions

def __init__ (self, colors=[])
 
- Public Member Functions inherited from lottie.objects.shapes.ShapeElement
def __init__ (self)
 
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
 
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

 opacity
 Fill Opacity. More...
 
 fill_rule
 Fill rule. More...
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 name
 After Effect's Name. More...
 
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 bm
 
- Public Attributes inherited from lottie.objects.shapes.Gradient
 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...
 

Static Public Attributes

string type = "gf"
 Shape type. More...
 
- Static Public Attributes inherited from lottie.objects.shapes.ShapeElement
 type = None
 Shape type. More...
 

Detailed Description

Gradient fill.

Lottie JSON
Lottie name Type Description Attribute
hd bool Hide element.   hidden
nm str After Effect's Name.   name
ty str = 'gf' Shape type.   type
cix int Property index.   property_index
bm int   bm
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
o Value Fill Opacity.   opacity
r FillRule Fill rule.   fill_rule

Definition at line 561 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.shapes.Gradient.

Definition at line 572 of file shapes.py.

Member Data Documentation

◆ fill_rule

lottie.objects.shapes.GradientFill.fill_rule

Fill rule.

Definition at line 578 of file shapes.py.

◆ opacity

lottie.objects.shapes.GradientFill.opacity

Fill Opacity.

Definition at line 576 of file shapes.py.

◆ type

string lottie.objects.shapes.GradientFill.type = "gf"
static

Shape type.

Definition at line 570 of file shapes.py.


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