python-lottie  0.6.11+devc144cca
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:
Collaboration diagram for lottie.parsers.svg.importer.SvgLinearGradient:

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

Detailed Description

Definition at line 84 of file

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

Member Function Documentation

◆ to_lottie()

def lottie.parsers.svg.importer.SvgLinearGradient.to_lottie (   self,
  time = 0 
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

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