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

Public Member Functions

def __init__ (self)
 
def add_color (self, offset, color)
 
def to_lottie (self, gradient_shape, shape, time=0)
 
def add_coord (self, value)
 
def parse_attrs (self, attrib)
 

Public Attributes

 colors
 
 coords
 
 matrix
 

Detailed Description

Definition at line 55 of file importer.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ add_color()

def lottie.parsers.svg.importer.SvgGradient.add_color (   self,
  offset,
  color 
)

Definition at line 61 of file importer.py.

◆ add_coord()

def lottie.parsers.svg.importer.SvgGradient.add_coord (   self,
  value 
)

Definition at line 74 of file importer.py.

◆ parse_attrs()

def lottie.parsers.svg.importer.SvgGradient.parse_attrs (   self,
  attrib 
)

Definition at line 78 of file importer.py.

◆ to_lottie()

def lottie.parsers.svg.importer.SvgGradient.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 in lottie.parsers.svg.importer.SvgRadialGradient, and lottie.parsers.svg.importer.SvgLinearGradient.

Definition at line 64 of file importer.py.

Member Data Documentation

◆ colors

lottie.parsers.svg.importer.SvgGradient.colors

Definition at line 57 of file importer.py.

◆ coords

lottie.parsers.svg.importer.SvgGradient.coords

Definition at line 58 of file importer.py.

◆ matrix

lottie.parsers.svg.importer.SvgGradient.matrix

Definition at line 59 of file importer.py.


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