python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.svg.importer.SvgLinearGradient Class Reference
Inheritance diagram for lottie.parsers.svg.importer.SvgLinearGradient:
[legend]
Collaboration diagram for lottie.parsers.svg.importer.SvgLinearGradient:
[legend]

Public Member Functions

def __init__ (self)
 
def to_lottie (self, gradient_shape, shape, time=0)
 
- Public Member Functions inherited from lottie.parsers.svg.importer.SvgGradient
def add_color (self, offset, color)
 
def add_coord (self, value)
 
def parse_attrs (self, attrib)
 

Additional Inherited Members

- Public Attributes inherited from lottie.parsers.svg.importer.SvgGradient
 colors
 
 coords
 
 matrix
 

Detailed Description

Definition at line 84 of file importer.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.parsers.svg.importer.SvgLinearGradient.__init__ (   self)

Reimplemented from lottie.parsers.svg.importer.SvgGradient.

Definition at line 85 of file importer.py.

Member Function Documentation

◆ to_lottie()

def lottie.parsers.svg.importer.SvgLinearGradient.to_lottie (   self,
  gradient_shape,
  shape,
  time = 0 
)
Parameters
gradient_shapeShould be a GradientFill or GradientStroke
shapeShapeElement to apply the gradient to
timeTime to fetch properties from shape

Reimplemented from lottie.parsers.svg.importer.SvgGradient.

Definition at line 92 of file importer.py.


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