python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.svg.importer Namespace Reference

Classes

class  SvgGradientCoord
 
class  SvgGradient
 
class  SvgLinearGradient
 
class  SvgRadialGradient
 
class  SvgDefsParent
 
class  SvgParser
 
class  PathDParser
 

Functions

def parse_color (color, current_color=Color(0, 0, 0, 1))
 Parses CSS colors. More...
 
def parse_svg_etree (etree, layer_frames=0, *args, **kwargs)
 
def parse_svg_file (file, layer_frames=0, *args, **kwargs)
 

Variables

bool has_font = True
 
dictionary nocolor = {"none"}
 

Function Documentation

◆ parse_color()

def lottie.parsers.svg.importer.parse_color (   color,
  current_color = Color(0, 0, 0, 1) 
)

Parses CSS colors.

See also
https://www.w3.org/wiki/CSS/Properties/color

Definition at line 134 of file importer.py.

◆ parse_svg_etree()

def lottie.parsers.svg.importer.parse_svg_etree (   etree,
  layer_frames = 0,
args,
**  kwargs 
)

Definition at line 1319 of file importer.py.

◆ parse_svg_file()

def lottie.parsers.svg.importer.parse_svg_file (   file,
  layer_frames = 0,
args,
**  kwargs 
)

Definition at line 1324 of file importer.py.

Variable Documentation

◆ has_font

bool lottie.parsers.svg.importer.has_font = True

Definition at line 15 of file importer.py.

◆ nocolor

dictionary lottie.parsers.svg.importer.nocolor = {"none"}

Definition at line 19 of file importer.py.